| Monu |
Posted: Mar 15, 2008 03:58:17 PM |
Total Post: 16
Joined: Jan, 2008
|
I've forgotten my user's passwd and I don't know how to recover or reset the passwd of that user, although i know root's passwd? Waiting for reply.....
Thanks... |
|
|
Jolly |
| Posted: Mar 16, 2008 07:54:53 PM | |
|
Total Post: 23
Joined: Mar, 2007
|
If you know root password, then login as root.
1. From root prompt give the command passwd <username>, it will ask you to give new password.
2. Or edit the file /etc/passwd as root user. Go to the line where that username ( you intend to change the password). On that line you will see some encoded character, remove that encoded character and save it. NOW BEFORE EDITING THE PASSWORD FILE MAKE A COPY OF IT (LIKE cp /etc/passwd /etc/passwd_orig). Now login as user (where you changed the passwd) it will not ask password. From user prompt ($) give the command passwd and follow the prompt.
Regards
|
|
|
|
|
http://sharear.blogspot.com |
| Posted: May 01, 2008 07:13:28 AM | |
|
Total Post: 48
Joined: Apr, 2008
|
loggin as root
> su
>password
>su <user_name>
>chpass
> new password
>exit
>exit
done!
|
|
|
|
|
http://sharear.blogspot.com |
| Posted: May 01, 2008 07:14:25 AM | |
|
Total Post: 48
Joined: Apr, 2008
|
use passwd instate of chpass
|
|
|
|
|
| Time Zone: EDT |
Send this thread to your friend |