[Gllug] I have forgotten my root password, I am a muppet.

Nix nix at esperi.demon.co.uk
Sun Sep 9 11:41:43 UTC 2001


On Wed, 5 Sep 2001, Kieran Barry spake:
> My pet technique is the following (allowing for typos, of course....)
> At the lilo prompt: linux init=/bin/sh
> mount -o remount, rw /
> vi /etc/passwd to cancel root's password field.
> 
> Should work for most of the world. I believe this brings the system up
> with only a shell running, which should avoid nasty things like
> password...

Of course, it also avoids nasty things like update(8), on many Unices,
and it certainly kills init(8) (that being, well, the whole point), so
you won't get an automatic sync on reboot either.

So remember a sync before rebooting ;)

-- 
`It's all about bossing computers around. Users have to say "please".
Programmers get to say "do what I want NOW or the hard disk gets it".'
                        -- Richard Heathfield on the nature of programming

-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list