![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to set new Root Passwd | gini | SUN Solaris | 2 | 12-05-2006 12:33 PM |
| Recover root passwd | gini | SUN Solaris | 5 | 11-29-2006 04:09 AM |
| Need to change root passwd | mayewil | UNIX for Dummies Questions & Answers | 4 | 10-27-2006 03:03 PM |
| root passwd expiration on AIX | aixguy | AIX | 1 | 05-19-2006 01:19 AM |
| Preventing passwd root? | scottsl | UNIX for Advanced & Expert Users | 4 | 01-06-2006 08:32 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
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 |
| Forum Sponsor | ||
|
|
|
|||
|
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. |
|
|||
|
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. |
|
|||
|
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............ |
|
|||
|
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. |