Root Password Recovery in ubuntu10.04

Asked by Sundeep Yenishetty

I have a system running with ubuntu10.04,earlier i changed my systems root password and now when i tried to log into root account i cannot allowed to enter into..As there was an Authentication Failure.Can any one help me out in recovering my root password will be appreciated greatly.

Thanks in advance

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu sudo Edit question
Assignee:
No assignee Edit question
Solved by:
Sundeep Yenishetty
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Enabling the root account is not advised, supported or necessary. You have ignored the config advised by several Linux SPECIALISTS which I find both funny and frankly pathetic. If you use the OS as it is intended you will have completely avoided this mess. But hey, you knew better. Right?

There are REASONS the account is disabled, most of them being basic security. Running an X server or WebBrowser as root (which is what happens when you log on as root) is particularly foolhardy.

The users in the admin group can use sudo and gksudo to perform admin tasks and have all the access of root.

What were you thinking?

Revision history for this message
Sundeep Yenishetty (sundeep-yenishetty9) said :
#2

Hi friends,

I got the solution by doing some R&D on my machine.

Firstly we need to go to the boot menu where u need to select the first boot option from there we have some text saying ro:quiet splash.We need to edit the text and add with the following text rw: init/bash then type ctrl-X and reboot the machine from there we can change the root password as it takes us to the root shell.

I thank all the members those who have tried to solve my issue.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

I STRONGLY advise you run:

sudo usermod -p '!' root

To disable the root account as it should be, then log in with the first account you created.