LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 04-26-2004, 01:12 PM   #1
papitu76
Member
 
Registered: Apr 2004
Location: Pamplona (NAVARRA)
Distribution: Debian/RedHat/Mandrake
Posts: 36

Rep: Reputation: 15
lost root password


Hello, I have lost my password of user root in a installation of Mandrake 9.2 with kernel 2.4.22-10.mdk

I have been told to fix it to create a boot disk, start the computer with that boot and change the password of root with passwd.

I have just a no administrator user to get into the system. With that one i am not able to mount the floppy. I didn't try but i guess i am not able to use /sbin/mkbootkdis --device /dev/fd0 2.4.20-8 as i was told.

Then i have no options to create that bootdisk from Mandrake, or yes?

Does anybody know how to create the disk from either Windows with CD-Installation of Mandrake or web?

Thanks.
 
Old 04-26-2004, 01:17 PM   #2
equinox
Member
 
Registered: Dec 2003
Location: Johannesburg, South Africa
Posts: 846

Rep: Reputation: 30
.
 
Old 04-26-2004, 01:51 PM   #3
zorba4
Member
 
Registered: Feb 2004
Location: Paris
Posts: 398

Rep: Reputation: 31
Talking

nicely answered, Equinox !
 
Old 04-26-2004, 03:26 PM   #4
mac_phil
Member
 
Registered: Sep 2003
Distribution: Mandrake 10.0
Posts: 200

Rep: Reputation: 30
I don't see why you need a disk.

If you have lilo, boot into 'linux single'. This gives you root access. Then do 'passwd root'. Then do 'init 5' to go back to your regular runlevel. I'm not sure how grub works, but it should be similar.

If this is not enough help search here (or google) for 'linux single root passwd'. This is a pretty common fix.
 
Old 04-26-2004, 07:31 PM   #5
setlec_seta
Member
 
Registered: Oct 2003
Location: somewhere around the world
Distribution: Mandriva 2010.1 pwp 64bit
Posts: 199

Rep: Reputation: 31
why donīt u format ur hdd then re-instal it... that could resolve probelm but u 'll lost ur files...

Good luck

Cheers
 
Old 04-27-2004, 02:22 AM   #6
zorba4
Member
 
Registered: Feb 2004
Location: Paris
Posts: 398

Rep: Reputation: 31
You will not necessirily loose your date. For instance, with Mandrake, the install program asks you which filesystems should be formatted or not. If your user data are in the /home directory, you may ask not to re-format the /home directory, and your date wil be kepkt untouched.
 
Old 04-27-2004, 02:36 AM   #7
mispunt
LQ Newbie
 
Registered: Apr 2004
Distribution: Mandrake
Posts: 14

Rep: Reputation: 0
But why reinstall, when you also could a boot disk where linux is on. or you can boot in single user mode... (No I didn;t know it either, the first time I did reinstall linux to )
 
Old 04-27-2004, 07:55 AM   #8
mac_phil
Member
 
Registered: Sep 2003
Distribution: Mandrake 10.0
Posts: 200

Rep: Reputation: 30
There is absolutely no reason to reinstall. Frankly, that's pointless overkill.
 
Old 04-28-2004, 08:35 PM   #9
marghorp
Senior Member
 
Registered: Jan 2004
Location: Slovenia
Distribution: Slackware 10.1, SLAX to the MAX :)
Posts: 1,040

Rep: Reputation: 45
Try to linux single with lilo or in GRUB boot loader pres a and type single at the end of the kernel line

kernel /vmlinuz-x.x.x bla bla bla single

to boot into single mode

then change password with passwd.

Is booting from CD not an option?

there is a way for creating a bootdisk with windows and Mandy CDs. Search the web for a program called rawwritewin and find bootdisk.img on the first Mandy CD.
 
Old 04-29-2004, 03:32 AM   #10
zorba4
Member
 
Registered: Feb 2004
Location: Paris
Posts: 398

Rep: Reputation: 31
Dooesn't the single mode startup ask you for the root password in Linux ?
On AIX system you cannot enter single user mode if you don't have the root password.
 
Old 04-29-2004, 04:09 AM   #11
marghorp
Senior Member
 
Registered: Jan 2004
Location: Slovenia
Distribution: Slackware 10.1, SLAX to the MAX :)
Posts: 1,040

Rep: Reputation: 45
yes, if you have password protected your GRUB loader, you will have to enter root password to enter extra parameters at boot.

If this does not work, use Linux rescue to boot into superuser mode with a bootdisk or boot CD.
 
Old 04-29-2004, 01:25 PM   #12
coalquay404
LQ Newbie
 
Registered: Oct 2003
Distribution: SuSE
Posts: 22

Rep: Reputation: 15
This may or may not work, depending on the default security settings for your distro. If you've got LILO set up to boot into a text mode OS selection, simply type

linux init=/bin/sh

to boot into a root shell. You can then change the root password as normal. If you've got LILO set up to boot into a graphical install, you could always try to boot up using your install disc and do the same.
 
Old 10-31-2004, 10:40 AM   #13
el aidi
LQ Newbie
 
Registered: Oct 2004
Posts: 2

Rep: Reputation: 0
Unhappy lost the passwd root in mandrake10.0

I need a help, because I cannot install internet in my computer with mandrake10.0 system, because I do not know the passwd of root. So I eed solution, the directory root is close.

Thank you.
 
  


Reply


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 04:03 AM
Lost root password zillah Solaris / OpenSolaris 10 05-24-2005 05:28 PM
Lost root password amirdhagopal SUSE / openSUSE 13 02-10-2005 12:09 AM
Lost root Password us06154 Linux - Newbie 17 08-14-2003 04:08 PM
lost root password dvong3 Linux - Newbie 2 06-13-2003 09:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 08:15 PM.

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