lost root password
Bob Edwards
Robert.Edwards at anu.edu.au
Tue Oct 1 11:12:15 EST 2002
"Scott D. Ferguson" wrote:
>
> I've inherited a Debian box setup as a firewall. In an effort to learn better config. I'd like to examine the setting. Unfortunately I don't have the root password.
> Tried Ctrl+X > passwd to no avail.
>
> Q1. Is it worth re-setting the password (I don't have a recent Debian comp.)?
>
> Q2. Can I re-set it (and how)?
> ---
> Nowhere near the bleeding edge..
>
> Is your boss reading your email? ....Probably
> Keep your messages private by using Lycos Mail.
> Sign up today at http://mail.lycos.com
You could boot the machine with /bin/bash as your init and then edit your
/etc/shadow file to remove the old root password.
At the lilo prompt, type:
linux init=/bin/bash
After it boots, you may need to remount the root filesystem read/write:
mount -o remount /dev/... /
Cheers,
Bob Edwards.
More information about the linux
mailing list