How do you change a password on Ubuntu

If you find your password insecure and wanna change it, you can do that with just type:

~$ passwd

Type your current password, then type your new password, and retype again to confirm.

In case you forgot your password, you can always reset your password with root user.

Then, redefine the password for user let say eddie.

~$ sudo passwd eddie

With root user, you can check the details of the password management, regarding when the password is set, and the password duration etc for all user or particular user.

Check user eddie

~$ passwd -S eddie

Check all users

~$ passwd -S -a



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: