Is it possible to reset a normal user password , by editing password field in /etc/shadow file?
Thanks
Is it possible to reset a normal user password , by editing password field in /etc/shadow file?
Thanks
there is no need to edit the file directly. use the passwd command
What i mean is, whether we will be able to reset the password as blank by clearing the password field in /etc/shadow file?Situation in which we forgot the user login password.
test:appWTvv667:14454::::::
see the man page for passwd. you can do everything that your asking using the passwd command and without having to directly edit /etc/shadow. see the -d and -f option.
Thanks Frank.
technically yes... you can edit the file and it will clear out the password.
After clearing the encrypted passwd in the shadow file, you can do
#passwd -f <userID>
to force the user to set the password in the next login