LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   Lol I forgot a user's password (https://www.linuxquestions.org/questions/linux-security-4/lol-i-forgot-a-users-password-152931/)

urzumph 03-03-2004 04:37 AM

Lol I forgot a user's password
 
I forgot a user's password (not root's, a normal user)
How can I reset it? I feel like such an idiot, lol

cjcuk 03-03-2004 04:38 AM

`root' can passwd on behalf of another user.

snacky 03-03-2004 04:39 AM

As root, just run "passwd username" where "username" is the user whose password you want to reset.

Also, you can remove the user's password entirely by editing the field to blank in /etc/shadow but this method has some SLIGHT security issues ;)

cjcuk 03-03-2004 04:56 AM

Quote:

Originally posted by snacky
Also, you can remove the user's password entirely by editing the field to blank in /etc/shadow but this method has some SLIGHT security issues ;)
You are probably better off doing `passwd -l $(USERNAME)'.

naren 03-04-2004 05:00 AM

passwd -d <username>
removes password for the user


All times are GMT -5. The time now is 06:57 PM.