[KLUG Members] Re: Password for root

Robert G. Brown members@kalamazoolinux.org
Sat, 22 Feb 2003 12:47:18 -0500


>> Taz <htgage3@chartermi.net> asked:
>> >> > Help!  I've forgotten my password for root. How do I go about getting i
t
>> >> > 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:...

Robert G. Brown <bob@acm.org> commented:
>> 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.

Bruce Smith <bruce@armintl.com> added:
>Some systems (don't remember if Redhat 8.0 is one) will ask you for the
>root password when you boot into single user mode before it'll let you
>do anything.  But it's the easiest way, so it's worth a try.

Not with the procedure I outlined above. I've never used or seen grub in
this mode, so I can't say anything about that.

							Regards,
							---> RGB <---