I have a linux pc on which several users are configured to login. for the same PC i have the root access (username and password). I have lost one of the user accounts password. How to get back the password for that particular user account.
I have tried the following being a root user
passwd <login name>
Enter new password
confirm new password
But its not fruitful
could you please suggest some ways of recoverng the password.
Also,I got to know that passwords are stored in /etc/shadow file in encrypted form. Does anyone know how to get the decrypted form of encrypted password.
Best Answer
The whole point of storing hashed passwords in
/etc/shadow
is so that it is not possible to retrieve the plaintext password, so there is no way to determine what the current password is. Your only option is to reset the password usingpasswd <username>
as root.