Very Much Need to Enable Root

Asked by PD

I've read most of the Launchpad posts and I've been playing with Ubuntu for a while. I get that sudo is the preferred method to issue commands in the terminal. Now I'm doing a CBT course, part video, on Linux and I need the root user enabled and the password just to keep up. I'm perfectly willing to blow away my system and start over if I screw it up. I accept all risks.

If any of you know them, please email me instructions to enable the root user and the pw to <email address hidden>.

Thanks,
PD

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
midnightflash
Solved:
Last query:
Last reply:
Revision history for this message
Best midnightflash (midnightflash) said :
#1

You can manipulate the shadow-file, where the passwords are stored:

$ sudo nano -w /etc/shadow

now you can copy the hash of your password to the root-user.
Just serch for yout username and copy the chars BETWEEN the FIRST and the SECOND colon from here to the root entry.

Now you can login as root with your passwd:

$ su -

Much fun... and don't get your fingers burnt by this! ;-)

Greetings.

ps: maybe a:

$ sudo passwd root

will do the job too... :-P

Revision history for this message
PD (email-dobsonhouse) said :
#2

Thanks midnightflash, that solved my question.

Revision history for this message
PD (email-dobsonhouse) said :
#3

First option worked great. Thanks again, PD