?
Solved

Never set root password

Posted on 1999-11-01
1
Medium Priority
?
188 Views
Last Modified: 2010-04-27
I installed Mandrake Cooker on a new partition on my machine, but never set the root password, so I can't log into it. Is there a way to change the password by booting into my working existing linux partition. I looked at the /etc/passwd file, but in place of the password field is a * which I guess means I'm using PAM or shadow passwords. Where are they stored?
0
Comment
Question by:gerdemb
1 Comment
 
LVL 5

Accepted Solution

by:
n0thing earned 150 total points
ID: 2175168
The encrypted passwd are stored in /etc/shadow.
You could boot in your existing Linux partition.
Mount the new partition over. Edit the /etc/shadow
file. Add the same encrypted string as your current
root login and you'll have the same password.
0

Featured Post

Evaluating UTMs? Here's what you need to know!

Evaluating a UTM appliance and vendor can prove to be an overwhelming exercise.  How can you make sure that you're getting the security that your organization needs without breaking the bank? Check out our UTM Buyer's Guide for more information on what you should be looking for!

Question has a verified solution.

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

This article shows how to use a free utility called 'Parkdale' to easily test the performance and benchmark any Hard Drive(s) installed in your computer. We also look at RAM Disks and their speed comparisons.
New style of hardware planning for Microsoft Exchange server.
How to fix display issue, screen flickering issue when I plug in power cord to the machine. Before I start explaining the solution lets check out once the issue how it looks like after I connect the power cord. most of you also have faced this…
The video provides a quick and easy steps to migrate MBOX file to well known Outlook PST and Office 365. Besides this, it also supports and migrates more than 20 email clients of MBOX which include AppleMail, Opera, Thunderbird and SeaMonkey effortl…
Suggested Courses

599 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