Solved

Reset root password in Debian

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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Suggested Solutions

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 …
BIND is the most widely used Name Server. A Name Server is the one that translates a site name to it's IP address. There is a new bug in BIND (https://kb.isc.org/article/AA-01272), affecting all versions of BIND 9 from BIND 9.1.0 (inclusive) thro…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
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…

815 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

12 Experts available now in Live!

Get 1:1 Help Now