Solved

Reset root password in Debian

Posted on 2006-07-04
2
3,029 Views
Last Modified: 2011-10-03
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...



0
Comment
Question by:marvelsoft
2 Comments
 
LVL 16

Accepted Solution

by:
xDamox earned 75 total points
ID: 17036494
Hi,

Reboot into single user mode and reset your root passwd.

http://linuxgazette.net/107/tomar.html
0
 
LVL 11

Assisted Solution

by:kblack05
kblack05 earned 50 total points
ID: 17052031
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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

​Being a Managed Services Provider (MSP) has presented you  with challenges in the past— and by meeting those challenges you’ve reaped the rewards of success.  In 2014, challenges and rewards remain; but as the Internet and business environment evol…
Fine Tune your automatic Updates for Ubuntu / Debian
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now