PDA

View Full Version : help in root password (noob)



gonogm
09-05-2005, 05:40 AM
my friend forgot his root password and he want me to recover / replace it. and i want to use knoppix in recovering / replacing it.

the problem is i only know how to administer oracle database in lunux but not troubleshooting the system, could somebody please teach me how?

Markus
09-05-2005, 10:16 AM
You can do that without using knoppix. If you use lilo, highlight the kernel you wish to mount, hit <tab>, type 1, hit <enter>, to boot into single user mode. Then just change the password with the command passwd
With grub, highlight kernel, type e to edit, add 1, hit <enter> and do passwd.

gonogm
09-06-2005, 02:27 AM
using grub 0.93, so i select redhat linux, then pressed e, but nothing happened

Markus
09-06-2005, 07:35 AM
Did you try typing 1 and pressing enter? Doesn't redhat have a resque mode on the cd? That should be able to reset the password. If both fail, try:
boot knoppix
login as root in a console
type "sudo su"
type "mount /mnt/hdXn && chroot /mnt/Xn" where Xn is your redhat root partition
type "passwd"
type "Ctrl-d"
reboot

Can't remember now if mounting /proc is needed, could someone fill in that info?