Arun K. Khan wrote:
On Fri, 2005-09-09 at 10:22 +0530, Rohit Baisakhiya wrote:
I forget the root password.How to recover the root password?
1. Boot off of a rescue CD
2. mount the / partition to /mnt
3. edit /mnt/etc/shadow
4. zap the password field (see man 5 shadow)
5. Upon reboot: login and change the password
Instead boot in single user mode and change the password to what ever you
want.
It is distro dependent -
SuSE 9.3 - need root password to boot into runlevel 1
FC 4 - !need root password to boot into runlevel 1 (I guess the same
for derivatives of Fedora/Redhat)
For distros that need root passwd for runlevel 1, the CD is required.
However if the root operator has forgotten his existing password, it
will be necessary in *both* bootup cases to delete the password entry
either in /etc/shadow as mentioned by Arun or delete the second field
entry 'x' in the /etc/passwd on the line corresponding to the root user.
Then set a new password.
Regards,
Rony.
___________________________________________________________
To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com
--
http://mm.ilug-bom.org.in/mailman/listinfo/linuxers