You know, I found that Debian still asks you for the root password even
when typing 'linux single'.  It's traced down to this line in
/etc/inittab:

# What to do in single-user mode.
~~:S:wait:/sbin/sulogin

Redhat doesn't appear to have the sulogin for single user mode, so if
you're using Redhat just 'linux single' while booting and you're golden.

Regards,

Warren

-----Original Message-----
From: Hewitt, Alexander 
Sent: Monday, November 19, 2001 12:23 AM
To: CmdrRoot
Cc: [EMAIL PROTECTED]
Subject: Re: The stupidest thing I've ever don


I thought to be a bit more thorough I would check deja.com and here is
an answer
clipped from one of the news groups:

"Boot into single user mode (at the lilo prompt, type 'linux single')
which should put you into a text shell as root, without logging in.
Type the passwd command, and change root's password. Enter the
'telinit 5' or 'telinit 3' command to get to the normal login.

or

Boot from your install/rescue disk, log in as root to that (usually a
known passwd), mount your root partition as /mnt, and edit the
/mnt/etc/passwd and/or /mnt/etc/shadow files to remove root's
password. Reboot, and login as root (no password). Enter the passwd
command to change roots password"

-Alex

Wirth's Law: Software gets slower faster than Hardware gets faster!

"On the side of the software box, in the 'System Requirements' section,
it
said 'Requires Windows 95 or better'. So I installed Linux."   -
Anonymous


On 18 Nov 2001, CmdrRoot wrote:

> This is really a longshot but does anyone know how to get root without
a
> password?
> 
> My situation:
> I did the one thing you are never supposed to do...I forgot my root
> password. Two weeks ago I had my system change the password of all
users
> (including root) and I made up such a great password, so secure that
not
> even I can get in. HAHA the first time I ever wrote my password down
> (and lost the paper in my desk) and now I can't find it. I am in a
kind
> of confuesed/angry state so please excuse me if this makes little
sense.
> 
> Can anyone tell me how I can find or change or create a new root
> password on a relitivly insecure system?
> 
> Thanks for any help provided,
> 
> CmdrRoot
> 
> 
> *****************************************************************
> To unsubscribe from this list, send mail to [EMAIL PROTECTED]
> with the text 'unsubscribe gnhlug' in the message body.
> *****************************************************************
> 
> 


*****************************************************************
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*****************************************************************

*****************************************************************
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*****************************************************************

Reply via email to