DIGIT-ARC read-only archive · snapshot: July 23, 2026

Root password

6 posts · originally from https://geek.digit.in/community/threads/root-password.13443/

godsownman
godsownman Original post #1
Jul 31, 2005 at 7:29 PM
Today I was messing with the Linux administrative settings and I really messed them up.

I managed to find out a way to lock the user accounts but I dont know how I also managed to

lock up the root account.

As a result now I am completely and royally stranded with all the main administrative settings held up by the root password.

But I cannot even change the root password as I have LOCKED it up,

I know that I have really messed up .

Can anybody please help me out and help me undo the mess and try to unlock the root account

so that I can again normally work.

Please do help.
godsownman
Jul 31, 2005 at 7:30 PM
Ok fine if that is not possible please do tell me how to make another account get the root status.

I think even that feature is held up by the root password.

I am using Red hat 9.0
U
ujjwal #3
Jul 31, 2005 at 8:29 PM
See tuxfan's post in this thread -

*www.thinkdigit.com/forum/viewtopic.php?t=15125

If that doesn't work, boot from any live/rescue CD, mount your linux partitions, and edit the file /etc/passwd on your linux partition. Blank out the string after the second colon (it may be marked as x) in the line which starts with root, and save the file.

That is, if the line is like this, initially

Code:
root:x:0:0:root:/root:/bin/bash

Make it

Code:
root::0:0:root:/root:/bin/bash
U
Jul 31, 2005 at 8:30 PM
Hi There,

For changing the root passwd ::

Just boot Into init 1 mode from grub screen ( if grub is not locked ) and reset ur root passwd.

Else u can try to boot into linux rescue mode and then mount ur linux parttion and just change ur root passwd .

Hope this helps u out !

Ur's
Utsav Handa
handautsav [at] hotmail.com
godsownman
Aug 1, 2005 at 3:37 PM
Thanks Ujjwal and utsavhanda,

I shall try them out and get back to you .

Thanks a lot .
godsownman
Aug 1, 2005 at 3:38 PM
Thanks Ujjwal and utsavhanda,

I shall try them out and get back to you .

Thanks a lot .