forgot root passwd


 
Thread Tools Search this Thread
Operating Systems Linux Red Hat forgot root passwd
# 1  
Old 05-21-2008
Question forgot root passwd

hi
i have a RHEL 4 and have forgot root passwd
tried to boot in by singel user and then changing the passwd but it's not letting me do that ......throwing some weird error as .......manipulation
i also tried to make a new user from CLI but even though it's not letting me in from that user as well .......
i even tried 'rm shadow' that dosent help as welll.....!!

please advice....

techbravo
# 2  
Old 05-21-2008
Hi,
If you still have the install CD then boot from it into rescue/repair mode, mount the disk which hosts /etc/passwd & /etc/shadow and erase the root password ...
What weird error did you get when booting in single user ? is it password protected ? Smilie
# 3  
Old 05-21-2008
Question What hardware & op system?

Not sure what rhel4 means, though.

I seem to recall that one way around this is to boot the server from the op console port in single-user mode, and then to reset the password. When starting in this mode, you should not get a password prompt.
# 4  
Old 05-21-2008
Quote:
Originally Posted by joeyg
Not sure what rhel4 means, though.

I seem to recall that one way around this is to boot the server from the op console port in single-user mode, and then to reset the password. When starting in this mode, you should not get a password prompt.
It stands for redhat enterprise linux 4 joeyg, provided the loader (grub or lilo) is not password protected, you can boot into single and reset root pw, i wonder what weird error techbravo is having Smilie
# 5  
Old 05-22-2008
IS the filesystem mounted RW? if not remount it with
mount -o remounnt,rw /

Check the permission of /etc/shadow and /etc/passwd

Do history and see what commands were run related passwd

tail /var/log/messages and see related messages. Post here if u dont understand.

Good luck!
# 6  
Old 05-22-2008
the error is as follows
passwd:authencation token manipulation error
i tried creating another user but it's not alowing me switch user
can i know how to swith user so that can be tried.....

i think that should work .......!!Smilie
# 7  
Old 05-22-2008
Without being crazy enough to test my hypothesis, this is only speculation, but if you have removed the shadow file, I wouldn't be too surprised if that's the reason you get this error.

Do you have a backup? Can you recreate it somehow?

The customary solution is to boot into single user (perhaps from a CD or USB stick) and edit the /etc/passwd or /etc/shadow file to have an empty password field for root. Then boot the regular system, log in as root, and set a new password.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

I have forgot my root password. Solaris 10

hi everyone i have forgot my root password and i have other user to login. can i get the password without restarting the server as that cant be afforded. . it is a Sparc architecture 2U blade server. it is old server mounted and functional since 2009. what should be the modus oprandee. i am novice... (5 Replies)
Discussion started by: janakors
5 Replies

2. Web Development

Forgot MYSQL password root

I have VPS openSUSE 12.2 I forgot MYSQL password root when i run in CMD: > mysql Error Message Show : >> ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) (6 Replies)
Discussion started by: CloudniX
6 Replies

3. Red Hat

Forgot Passwd

Dear all, I am using RHEL5. In that machine i forgot the root passwd. But i can able to login by using my username. But performing administrative tasks it will asks the root login. Can somebody tell me reset the root passwd. Thanks in advance. Regards, Prakashkumar.S (2 Replies)
Discussion started by: prakashkumar41
2 Replies

4. UNIX for Dummies Questions & Answers

Forgot root password

i am a new user of unix . i lost my SGI unix server root password Any body please help me,how get password? (2 Replies)
Discussion started by: vasu.k82
2 Replies

5. AIX

root passwd expiration on AIX

Hi Guys, some one could help me on this that will be great . I have AIX 5.1 . when ever u login as root .it says u r passwd is expiredchoose new passwd . I tried couple of times changeing the passwd .still it behaves every time u login it asks to change the passwd . i teied to lokk into... (3 Replies)
Discussion started by: aixguy
3 Replies

6. UNIX for Dummies Questions & Answers

hw to reterive root passwd

heyy i forgot my root passwd but i cant reinstall due to some reason can anyone tell me hw to reterive root passwd (10 Replies)
Discussion started by: mightypp.nits
10 Replies

7. Solaris

How to set new Root Passwd

I forget the Root Passwd of my Sun Netra 20 server and break the same by editing /etc/shadow.Now there is no passwd for Root. And How to set new root passwd?Pls help.... (2 Replies)
Discussion started by: gini
2 Replies

8. Solaris

Recover root passwd

Any body pls let me know the procedure to recover ROOT password in Sun Netra 20 Server..I forgot the password. (5 Replies)
Discussion started by: gini
5 Replies

9. UNIX for Dummies Questions & Answers

Need to change root passwd

I booted up Sun V240 server with boot cdrom -s using the Sun Operating System CD. I now am at the # prompt and su - root . The system will not allow me to set password for root. Get following error: # passwd New Password: xxxxxxxx Re-enter new Password: xxxxxxxx passwd: Unexpected failure. ... (4 Replies)
Discussion started by: mayewil
4 Replies

10. UNIX for Advanced & Expert Users

Preventing passwd root?

I knew it would happen sooner or later.... We have a requirement that specific individuals need "sudo root" authority. I knew it only a matter of time before someone decided to change the root password (at least they owned up to it). Now the question is how can I grant all rights except... (4 Replies)
Discussion started by: scottsl
4 Replies
Login or Register to Ask a Question