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 10-27-2004, 12:15 PM   #1
cloc
LQ Newbie
 
Registered: Oct 2004
Posts: 4

Rep: Reputation: 0
root password gone, shit.


Can not login to one of my mandrake 9.1 server anymore.

To go into single usermode is not an option I have

______
the screen:


Linux-secure linux failsafe

boot:

----------

can not just type ind linux single, it jut boots with runlevel 3

what can I do ?


Cheers

Claus
 
Old 10-27-2004, 12:29 PM   #2
thefsfempire
LQ Newbie
 
Registered: Oct 2004
Posts: 11

Rep: Reputation: 0
When failsafe comes up do NOT press ESC. Then it will go through the [ OK ] thing and end up at a command prompt to login. Login as a user then type "su". I tried it and I became root. It should still work without a password as I don't have one set for me either and I can still login.

Thanks,
Shawn
 
Old 10-27-2004, 12:39 PM   #3
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 3,009

Rep: Reputation: 396Reputation: 396Reputation: 396Reputation: 396
I assume your using lilo(mdk default). I also assume you have put some kind of security thing in lilo to keep anyone from booting into single user mode. I'm not familiar with that type of security measure but I assume whatever it is it will be reflected in your /etc/lilo.conf.
If your locked out of root and can't edit lilo.conf, the only thing I can think of is to get knoppix or some other bootable linux cd, boot the cd, and edit the lilo.conf through there to get rid of the security measure and rerun lilo in a chroot environment. Then you can boot into single user mode and change the root password. Please post your lilo.conf and I can give more detailed help.
 
Old 10-28-2004, 03:14 AM   #4
cloc
LQ Newbie
 
Registered: Oct 2004
Posts: 4

Original Poster
Rep: Reputation: 0
Will try your idea

thanx and return with the result, positive I hope :-)

Claus
 
Old 10-28-2004, 03:42 AM   #5
georgekodinov
LQ Newbie
 
Registered: Sep 2003
Location: Plovdiv
Distribution: Fedora
Posts: 4

Rep: Reputation: 0
Lightbulb another way to boot up w/o asking you for password

Hi,
Here's a trick that runs on every linux (I've used it in similar situation on my Fedora core) :
on the LILO/grub command prompt you write what you normally write, but append :
init=/bin/sh (example : 'linux init=/bin/sh'). This assumes that /bin/sh is present.
That causes the boot process to go direct to the said program, instead through the normal init scripts.
Here you can use things like 'passwd' to change root's password.
HTH

George Kodinov
 
Old 11-08-2004, 05:54 AM   #6
cloc
LQ Newbie
 
Registered: Oct 2004
Posts: 4

Original Poster
Rep: Reputation: 0
Kernel panic

Got Kernel Panic during startup, But your idea is absolute OK! I simply just need some files on that system, så will go with knoppix now :-)
 
Old 11-08-2004, 06:57 AM   #7
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 64
If "linux single" doesn't work, how about "linux 1"?
 
Old 01-27-2005, 10:11 AM   #8
cloc
LQ Newbie
 
Registered: Oct 2004
Posts: 4

Original Poster
Rep: Reputation: 0
Sorry for the late answer here. knoppix gave me some errors then I had a try with gento and its really good, I could mount straight ahead it gave me an DHCP IP and I could ftp all the files I needed. www.gentoo.org guess its almost the same as knoppix .... the difference for me was simple it did find my raid-card ...
 
  


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
How could normal user obtain root password or change root password ckamheng Debian 18 02-18-2009 11:28 PM
Holy shit, used the latest kde yet?... xodustrance Linux - Software 22 07-03-2005 03:52 PM
Logged in as root, prompted for root password ta0kira Slackware 13 04-25-2005 02:29 AM
problem with win-shit partition and reboot wizard7423 Slackware 4 03-17-2005 09:34 AM
What the shit Mplayer? perrymans Linux - General 3 09-14-2003 09:52 AM

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

All times are GMT -5. The time now is 09:47 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