Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Lost root passwd

Posted on 1999-01-20
6
Medium Priority
?
345 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 300 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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

The purpose of this article is to demonstrate how we can use conditional statements using Python.
I have written articles previously comparing SARDU and YUMI.  I also included a couple of lines about Easy2boot (easy2boot.com).  I have now been using, and enjoying easy2boot as my sole multiboot utility for some years and realize that it deserves …
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.
Suggested Courses
Course of the Month9 days, 18 hours left to enroll

926 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