[sf-lug] recovery from loss of root password

Asheesh Laroia asheesh at asheesh.org
Wed Sep 19 15:20:15 PDT 2007

On Wed, 19 Sep 2007, Rick Moen wrote:

> Upon boot-up, you'll want to do "mount -o rw,remount /", to make sure
> the root filesystem is read-write.  Then, "passwd root".  Then, whatever
> is your favourite ritual to make sure the disk cache is flushed before
> reboot.  Some people like the Standard Sysadmin Cheerleading Call:
>   # sync
>   # sync
>   # sync
>   # reboot

This will leave your filesystem in a dirty state.  I would urge you to do:

# mount -o remount,ro /

first, before the commands Rick suggested.

> But use the right tool for the job, would be my primary advice.

and what good advice that is!

-- Asheesh.

Insanity is hereditary.  You get it from your kids.

More information about the sf-lug mailing list