How To Change User’s Password in Linux

When creating new user accounts under linux, new users are given with unassigned password fields, represented by double !! marks. The field format of /etc/passwd and /etc/shadow files in linux OS have been covered previously here. If you wish to change a user password, read on.

Change User’s Default Password in Linux

If you have just created a new user john by issuing the below command

# useradd -d /home/john

You can simply change john’s default linux password by issuing

# passwd john

When changing password, any differences for password confirmation would not be accepted, it is therefore important to type the new password correctly on both confirmation fields. The password entry would not be displayed while you are retyping john’s password.

Changing of password for users in linux requires a super user account privelege, most likely as root. And lastly, it is required to remember the new password when changing user password.

All is done.

Gishore James

Manager Technology at Quikr
I am a highly successful, competent team member with a background of extensive hands-on project implementation experience. My success has been both internal to the companies to which I’ve contributed and external to clients and customers.Having the knowledge of setting up efficient & cost effective technology solutions, internet innovations, large scale IT implementations, helps me to find out the unique one in the way of my career.



Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>