Introduction
Sometimes you need to change your login password on a Linux system to keep your account secure or update it after it expires. The passwd command lets you do this easily from the command line.
When you want to update your own user password for security reasons.
When an administrator needs to reset another user's password.
When a password has expired and you are prompted to change it at login.
When setting a new password after creating a user account.
When you suspect your password has been compromised and want to change it immediately.