hw to reterive root passwd


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers hw to reterive root passwd
# 1  
Old 11-11-2007
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
# 2  
Old 11-11-2007
Not knowing what system you have means we can only give general advice.

I suggest you post operating system version, hardware etc.

The general solution is to boot in single user mode using a CD-ROM, then mount the root partition which typically has the /etc directory on it, and manually edit the "passwd" file to remove the password for root.

Altenatively use "chroot" to set the volume as your root and run the passwd command directly.
# 3  
Old 11-22-2007
Question

ya ...im using fedora-7 and i had set the grub loading password ....do i have any way to change or retreive my root passwd......actually i have some important data that i dont want to loose.....
# 4  
Old 11-22-2007
You may be able to boot into maintenance mode (or something similar), but that may ask for the root passwd anyway!
Otherwise, you could boot from a "live" CD and then mount your hard disk to be able to get at the file as described in the first response (note that you delete the password field with the editor, not the whole line).
Once that's done, you can then reboot from your hard disk and login with no password.
Make a copy of that passwd file before you edit it, or you could get in a right pickle if you make a mistake.
# 5  
Old 11-22-2007
hiiiiii.....
thanks i tried the chroot command and i m able to change my root passwd.....but as a security reason....can u telll me hw to restrict it ...i mean i had entered as a user and by using this command i m able to view my root directory .....at this instant its ok for me ...but hw to restrict this....or any user can have access to this............SmilieSmilieSmilie
# 6  
Old 11-22-2007
You have to

(a) restrict the BIOS options for what the machine can boot from, eg only from first harddisk and password protect the BIOS

(b) put the machine in a locked room or cupboard

unless you encrypt the drive you can always remove the drive from that machine and put it in another machine to do the same thing.

Of course once you do that you will be posting a message saying how do you reset the BIOS password or asking where you put the key for your cupboard.
# 7  
Old 11-22-2007
Quote:
Originally Posted by porter
(b) put the machine in a locked room or cupboard
cassj looks in cupboard.....corn flakes, oatmeal, ritz crackers, web server, ramen noodles...
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Forget ILOM Username passwd, how to reterive it from OS with out rebooting

Hi Every One, Is their any command or solution to retrieve ILOM username and password from Solaris OS without rebooting or resetting. Thanks (3 Replies)
Discussion started by: bobby320
3 Replies

2. Red Hat

Root shell in /etc/passwd is corrupted

I accidentally changed root shell from /bin/bash to bash in /etc/password, then logged out from root. Now I can't login as root and got "No shell" error, although I have root password. "su -f -s /bin/bash" command does NOT work. There is no GUI interface for this system. My question: Do I have... (7 Replies)
Discussion started by: aixlover
7 Replies

3. 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

4. Red Hat

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... (12 Replies)
Discussion started by: techbravo
12 Replies

5. UNIX for Dummies Questions & Answers

How to edit the /etc/passwd file not using root?

Hi All, Today I faced a problem trying to log in as root. The output error is cannot execute sh: No such file.... I doubted there is something wrong with shell interpreter which resides in /etc/passwd file for every user who logs in. I checked and the line for root account was... (4 Replies)
Discussion started by: elthox
4 Replies

6. 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

7. 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

8. 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

9. UNIX for Dummies Questions & Answers

Dont have the root passwd for Solaris 8

Hello chiefs :) I have a SUN Enterprise 250, running Solaris 8.5 - I have managed to be able to connect a dumb terminal to the box via a standard straight-through rj45 cable, to my ibm laptop. OK so Putty can connect to the box via ssh - nice! But I dont have the password for root - or any... (1 Reply)
Discussion started by: congo
1 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