[KLUG Members] Re: Password for root
Robert G. Brown
members@kalamazoolinux.org
Sat, 22 Feb 2003 09:45:11 -0500
Taz <htgage3@chartermi.net> asked:
>> > Help! I've forgotten my password for root. How do I go about getting it
>> > back? Running RH 8.0
Bruce Smith <bruce@armintl.com> replied:
>> Reinstall. No wait, that's windows. :-)
>>
>> Boot up a standalone Linux system on CD or floppy (tomsrootbt, knoppix,
>> demo linux, linuxcare bbc, hpa's superrescue, ....) mount your root
>> filesystem, and manually edit /etc/passwd and/or /etc/shadow.
Dirk Bartley <bartleyd2@chartermi.net> replied:
>Another way would be to boot up into single user mode. Assuming you are
>using grub for your boot loader, the procedure goes something like so:...
If you're using lilo, you can type:
linux 1
to bring the system up in single-user mode. Control-X from the initial
screen that comes up will get you to a lilo: boot prompt.
The passwd commend will permit you to change your password at that point.
Shutdown and restart in the usual way, and you'll be fine.
Regards,
---> RGB <---