PDA

View Full Version : [SOLVED] how to restore root password



forsubhi
November 6th, 2011, 03:37 AM
I miss my root password and when I go to recovery mode , it prompts me to enter it

please help me !

bluexrider
November 6th, 2011, 03:42 AM
I miss my root password and when I go to recovery mode , it prompts me to enter it

please help me !

sudo passwd root
sudo passwd -u root

When you’re done Log Out

On the Login Screen, select Other, then type the ‘root’ (without quotes) for the username and the password you created to login.

Rodney9
November 6th, 2011, 03:42 AM
http://www.psychocats.net/ubuntu/resetpassword

Psychocats to the rescue !

forsubhi
November 6th, 2011, 06:01 AM
when I select drop to shell , it requires my root password which I forgot it

lisati
November 6th, 2011, 06:05 AM
Please read https://help.ubuntu.com/community/RootSudo

sisco311
November 6th, 2011, 01:12 PM
On the Login Screen, select Other, then type the ‘root’ (without quotes) for the username and the password you created to login.

This won't work. In Ubuntu, like in most Linux distributions, the root login via the GUI is disabled by default.


@OP

If your user has full admin rights, you can lock/reset the root account password (for instructions, check out the link posted by lisati). If the root account password is locked, you won't be prompted for a password in the recovery mode (or single user mode).

If your user has limited or no admin rights, then you will have to reset the root password:

Reboot the computer and during the boot process hold down the Shift key.

When the grub menu appears highlight the recovery mode option.

Press e for edit and replace the ro single kernel parameters at the end of the linux line with rw init=/bin/bash.

Press Ctrl+x to boot the computer and wait for all boot processes to finish.

Remount the root partition with read/write privileges:

mount -o remount,rw /

and reset the root password:

passwd root

press Ctrl+Alt+Del to reboot.

forsubhi
November 25th, 2011, 06:06 AM
thank you very much sisco311
your solve is perfect and my thread is solved
but there is small note

I didn't find ro single instead I found (( ro recovery nomodeset )) and changed it to ((rw init=/bin/bash))