Re: Reset root password without alternate boot?

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Alan Dayley
Date:  
To: Main PLUG discussion list
Subject: Re: Reset root password without alternate boot?
On Sat, Aug 23, 2008 at 5:37 PM, Matt Graham <> 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
---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss