Linux: How To Reset User Account Password
In this post you’ll see that how to reset or change user’s password on linux operating system, you can use “passwd” command to reset user’s password. As a linux admin, Maybe you will manage thounds of user accounts and if some one forgot his/her password, then he must be ask for a help to you to reset his/her password, then how to reset it, this guide is for newbie linux learning:
Linux Reset user password
Issue the following command to reset a user’s password, you should login the system with root user so that you have enough permission to change user’s password:
#passwd <username>
Example:
reset password for “test” user:
#passwd test Changing password for user test. New password: BAD PASSWORD: it is WAY too short BAD PASSWORD: is a palindrome Retype new password: passwd: all authentication tokens updated successfully.
Now the passwork for “test”user was changed, you can try to switch user to login the system using “su test” command and issue new password of test user, check if it can be log in successfully.
done….