RH7.3 Lost Root Password

plug-discuss@lists.plug.phoenix.az.us plug-discuss@lists.plug.phoenix.az.us
Wed, 29 Jan 2003 03:59:20 -0600 (CST)


On Wed, 29 Jan 2003, der.hans wrote:

> Am 28. Jan, 2003 schwätzte MIqbal so:
> 
> > I am very new to the Linux.  I just made a foolish thing and changed the
> > root password to a complicated one.  Now I just do not remember it anymore.
> > Can some one help me point to direct me how to changed the root password.
> > It will be a great help.
> 
> This will require a reboot.
> 
> When booting you'll get a prompt asking which kernel to boot if you're using
> lilo. Hold down an <alt> key to get the system to pause at that point.
> 
> Choose one of the available kernel names and add " init=/bin/sh" to the end,
> then hit return.
> 
> If you're using grub someone else will have to explain how to get to this
> point.
> 
> After the system boots you will have a root prompt. At this point you need
> the following commands:
> 
> mount -o remount,rw /
> passwd
> mount -o remount,ro /
> exec /sbin/init
> 
> The last will let the system finish booting to the normal run level.
> 
> If this doesn't work and you have an install CD, we can walk you through
> zeroing out the root passwd.

or you can do it the easy way.  at the 'boot:' prompt, type 'linux init 1' 
or 'linux init S' ( I forget which one)   this will bring you into single 
user mode with a shell prompt.  change the password.  reboot.  :)

David

-- 
"I find your lack of faith disturbing."
--Darth Vader
---
  3:55am  up 52 days, 14:23,  1 user,  load average: 0.00, 0.00, 0.00