[KLUG Members] Re: Password for root

Bruce Smith members@kalamazoolinux.org
22 Feb 2003 12:34:23 -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.

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.

--------------------------------------------
Bruce Smith                bruce@armintl.com
System Administrator / Network Administrator
Armstrong International, Inc.
Three Rivers, Michigan  49093  USA
http://www.armstrong-intl.com/
--------------------------------------------