Reset root password without alternate boot?

Alan Dayley alandd at consultpros.com
Sat Aug 23 21:03:44 MST 2008


On Sat, Aug 23, 2008 at 5:37 PM, Matt Graham <danceswithcrows at usa.net> wrote:
> So there's no way to boot a rescue CD, and appending "single" to the kernel
> command line starts a process that asks for the root password.  Pas de
> probleme, mes amis.  The magic word is "init=/bin/bash" .  Instead of
> starting /sbin/init , the kernel starts bash as UID 0, which is suboptimal
> but will give you enough functionality to do "passwd" and change the password
> to something you can remember, *then* you reboot normally.  NOTE:  You may
> have to do "mount / -n -o remount,rw" so that / will be writeable.  Also, I
> haven't tried this on a system where / is on LVM.  HTH,

Great tip Matt, thanks.

>  Dilbert: Not more than ten minutes ago you beat a man senseless.
>  Alice:   He was senseless before I beat him.

LOL! (literally)

Alan


More information about the PLUG-discuss mailing list