Changing Passwords

You can change your own password, or if you are an admin you can also change the passwords of other users.

To change the password for your currently logged-in user:

passwd
# Enter existing password
# Enter new password
# Enter new password again (to validate)

To change the password for the user ‘roger’ (only if you are logged in as root):

passwd roger
# Enter new password
# Enter new password again (to validate)