[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Recover root password



Alvin Oga <aoga@Maggie.Linux-Consulting.com> writes:

> http://www.Linux-Consulting.com/Boot/Boot.SingleUser.ForgotRootPasswd.txt

Somebody should point out that you can use your ordinary Debian Rescue
Disk to do this maintenance. Just boot into the normal install
process. As soon as the installation menu occures you can switch to
another virtual console and activate it with <Enter>. Once you are
there the usual instructions apply: 

mount /dev/hdX /mnt
ae /mnt/etc/shadow
delete the field after "root:" up to the next ":"
reboot from disk
login as root with no password and set a new password.

If you think that living without a root password for a few seconds is
too dangerous you can of course copy the crypted password entry from
another user instead of blanking it. It's just a little bit harder if
you are too lazy to type it by hand and too oblivious to remember how
to copy&paste in ae. :-)

[x] ulf

-- 
Der Computer ist die logische Weiterentwicklung des Menschen:
Intelligenz ohne Moral.  (John Osborne)


-- 
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: