Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.


  Search this Thread
Old 11-10-2004, 04:53 PM   #1
LQ Newbie
Registered: Jul 2004
Posts: 3

Rep: Reputation: 0
Unhappy Lost Root Password

Hello All,

I have a big issue. I'm a networking assistant and have recently run into problems with Mandrake Linux 9.1. I somehow managed to forget the root password. Is there any way to reset the password by editting the passwd file. I tried using vI to edit the file but came out with no result. If you can do this via vI, how do you do it? Step by step instructions would be greatly appreciated.

Thanks for your time,

Old 11-10-2004, 04:57 PM   #2
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 67
You could do it but it would mean having write access to /etc/shadow which you probably don't have unless you have a suitable sudo user.

The best option is just to bring the system up in single user mode. How you do this depends on the bootloader you are using, there are plenty of examples on this site if you search.
Old 11-10-2004, 06:17 PM   #3
LQ Newbie
Registered: Jul 2004
Posts: 3

Original Poster
Rep: Reputation: 0
Using Lilo

Need step by step instruction plz.

Old 11-10-2004, 06:24 PM   #4
Registered: Mar 2002
Distribution: Debian, Kubuntu
Posts: 311

Rep: Reputation: 20
Do you have a live cd you can use or another linux distro installed? If so you can chroot into Mandrake and change your root password. At your root prompt type passwd and it will prompt you for a new password.
Old 11-12-2004, 06:27 PM   #5
Senior Member
Registered: May 2004
Location: california
Distribution: mdklinux8.1
Posts: 1,209

Rep: Reputation: 45
mystified; life saver u. been looking for this long time. patience paid off thanks.
& thank you thamainframe for bringing up ? ,me too about a yr achingly putin up with w. whimper.. saved at last.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Lost Root password Oakstaff Linux - Newbie 6 11-29-2006 05:03 AM
Lost root password amirdhagopal SUSE / openSUSE 13 02-10-2005 01:09 AM
lost root password papitu76 Mandriva 12 10-31-2004 11:40 AM
Lost root Password us06154 Linux - Newbie 17 08-14-2003 05:08 PM
lost root password dvong3 Linux - Newbie 2 06-13-2003 10:34 AM > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 06:44 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration