Reset root password in Debian

Experts,

Looking for help on how to reset root password in Debian Sarge 3.1. Is there any restore CD to do that?

Sorry I forgot the password:)

Thanks...



marvelsoftAsked:
Who is Participating?
 
xDamoxCommented:
Hi,

Reboot into single user mode and reset your root passwd.

http://linuxgazette.net/107/tomar.html
0
 
kblack05Commented:
Boot from debian CD choosing linux2.4 kernel (default)

Mount the root partition to /mnt (or make a tmp dir and mount it there)

Issue 'chroot /mnt' (or wherever you made the dir if you created one)

Then issue the 'passwd' command, or 'passwd root' and change the password.

You could use 'cat /etc/fstab' to determine your root partition, or since you'll not yet be chrooted, you can also *carefully* use 'fdisk /dev/hda' or 'fdisk /dev/hda1' and then press "P" for print. The /dev/hda# you are looking for will be for the root or '/' dir.

Regards,

~K Black
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.