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

Re: Unidentified subject!



Kent West wrote:

Antonio Mu?oz-Flores wrote:

Hello everybody,

I'm new to Debian and I just forgotten the root password so I can do many administrative task. Does anybody know how to recover the root password?

Antony

If you have sudo installed (you *do* have it installed, don't you?) and have your user configured with enough permissions, you might can simply "sudo passwd root". I've never tried it; it may not work on the root account, but it's worth a shot.

Otherwise, at the LILO prompt, enter "linux init=/bin/bash" (assuming quite a few things); this might get you in with enough permissions to "passwd" as root.

As a last resort, you can repeatedly kill the power during boot-up. Eventually you'll corrupt the / file system enough that it can no longer read enough of the system to ask for a password. Of course, by that time, you may have corrupted the root file system beyond repair, but if you have separate partitions for everything else, you should be able to get to your data. As I said, this is a last resort.

Kent

Before you corrupt your harddrive, download and burn the floppy for Tom's Root/Boot kit, boot your machine with it, mount your 'normal' root partition and remove the password field in /etc/shadow for root. Reboot off the HDD and login as root without a password (probably a good idea to unplug network/modem 1st lol), then run passwd root.

I am of course assuming it _is_ your box isn't it?

John P Foster



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



Reply to: