Solved

Lost root passwd

Posted on 1999-01-20
6
324 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
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 
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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Reset Root Password on CentOS 6 4 69
How to update  and reset admin password for Linux 5 65
installing docker on ubuntu 6 36
error log using ftp 7 56
I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
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.

860 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