Change user password in ubuntu
hi all,
I have a netbook with ubuntu installed. I lost the user password, so tried to change it in single user mode. The problem is when I try to change the password with command (passwd user), it says the following error: Quote:
|
Log in.
Type "passwd". Enter new password, confirm. |
Quote:
|
I just tried this, and the following worked for me:
From the grub boot menu, select "recovery mode" Then select "Drop to root shell" You are root (the prompt is '#' ) passwd username Give the new password, twice. reboot |
Quote:
|
Quote:
|
Wim does have a point. :)
http://www.linuxforums.org/forum/lin...-password.html http://www.linuxquestions.org/questi...ssword-449024/ |
The old trick: at the grub prompt select "Edit", add single to the kernel line, press boot, change password, reboot.
|
In grub kernel line 'init=/bin/bash' was what I added at last, which let me to log in with root without password.
But, 'passwd username' or 'passwd' never worked for me. Same error I mentioned above. |
Quote:
|
@falconite
I might be mistaken but in single user mode one is root and running passwd without username will therefore change the root password. |
All times are GMT -5. The time now is 08:24 PM. |