Solved

Lost root passwd

Posted on 1999-01-20
6
318 Views
Last Modified: 2010-04-20
What will you do if you forgot your ROOT PASSWD?
I've mounted the PASSWD file but it is in read-only mode.
 
0
Comment
Question by:rsable
  • 2
  • 2
  • 2
6 Comments
 
LVL 10

Expert Comment

by:rbr
ID: 1639181
How did you mount the password file?
To remove the root password to the following.

Boot Linux from disc and enter with root (not password needed). Mount the drive where the system is on. Enter the etc directory and edit the file passwd. Clear the password entry for root. Reboot your system.
0
 

Author Comment

by:rsable
ID: 1639182
I tried booting using the disc after that happened, i mounted the passwd using  mount <dev> <file/directory>, but i can't find a way to edit the passwd file -- pico, edit and joe didn't work.Is there another way I can't modify the passwd file?  is there an  equivalent function that works like edit or pico?
0
 
LVL 2

Accepted Solution

by:
wqclatre earned 100 total points
ID: 1639183
Start linux in singel user mode by typing
linux single
or linux 1

at the lilo prompt.
You don't need any password to start in single user mode.
Then just change youre password with passwd.
0
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 
LVL 2

Expert Comment

by:wqclatre
ID: 1639184
You can also try this:
1. boot from floppy
2. mount youre / partition on /mnt
3. Use chroot to change / to /mnt
4. Try vi or pico or some other editor now.


0
 
LVL 10

Expert Comment

by:rbr
ID: 1639185
Use vi!

0
 

Author Comment

by:rsable
ID: 1639186
thanks....salamat!
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

In this tutorial I will explain how to make squid prevent malwares in five easy steps: Squid is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response times by caching and reusing frequently-…
Fine Tune your automatic Updates for Ubuntu / Debian
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

895 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

15 Experts available now in Live!

Get 1:1 Help Now