Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-27-2002, 01:32 PM   #1
LQ Newbie
Registered: May 2002
Location: England
Distribution: SuSE
Posts: 5

Rep: Reputation: 0
Unhappy Password Recovery and Single User mode

I've got a SuSE Linux box but don't know the root password.

I've tried the following, but it doesn't work as it still asks for a root password.

Any ideas??

I' tried....

1. At LILO prompt: linux single
2. The machine then boots into Single User mode, but then instead of getting a # prompt, it asks for the Root password - which is not 'blank', as I've tried that.

I've also tried booting from a floppy boot disk, but I get the same, as if whilst booting, it detects the hard disk, and reads those root password files.


thanks in advance for any help!!

Old 05-27-2002, 02:57 PM   #2
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,602

Rep: Reputation: 202Reputation: 202Reputation: 202
Boot from rescue disk, edit /etc/shadow and delete all between first two : in root line. It looks like this
Old 05-27-2002, 03:58 PM   #3
LQ Newbie
Registered: May 2002
Location: England
Distribution: SuSE
Posts: 5

Original Poster
Rep: Reputation: 0
Unhappy unable to edit shadow file

thanks for the advice, but, when i boot using the rescue disk, and in single user mode, the hard disk partition containing the shadow file is automatically mounted as read-only.

any ideas how i can get to change the shadow file?

i guess i need to somehow mount the partition as read/write, but it's not happening - unless i'm not doing it right????
Old 05-28-2002, 04:07 AM   #4
Registered: May 2002
Posts: 179

Rep: Reputation: Disabled

# Linux init=/bin/bash

# mount -n / -o rw
# passwd root

should do it

Old 05-28-2002, 05:59 AM   #5
LQ Addict
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
When you boot up with the rescue disk, try entering
linux single rw. I hope that works.


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
single user mode in lilo valjoux Linux - General 1 10-20-2005 01:03 AM
single user mode... navaladi Mandriva 2 12-26-2004 03:41 AM
single-user mode can't boot eye Red Hat 1 11-19-2003 05:08 AM
single user mode ? wr3ck3d Slackware 5 03-29-2003 10:52 AM
What is single-user mode?? rbanonuevo Linux - Newbie 4 01-28-2002 01:17 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:51 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration