Solved

Reset root password in Debian

Posted on 2006-07-04
2
3,027 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

​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…
Hello EE, Today we will learn how to send all your network traffic through Tor which is useful to get around censorship and being tracked all together to a certain degree. This article assumes you will be using Linux, have a minimal knowledge of …
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

743 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

14 Experts available now in Live!

Get 1:1 Help Now