TechTalkz.com Logo Ask the Experts!

Go Back   TechTalkz.com Technology & Computer Troubleshooting Forums > Operating Systems > Open Source & Linux

Single User Mode in Suse Linux 10.1 - Reset root Password?

Open Source & Linux

 
Reply
Thread Tools Display Modes
Unread 27-09-2006, 06:48 PM   #1
Junior Member (25+)
Thread Starter
 
Join Date: Aug 2006
Posts: 28
Thanks: 2
Thanked 0 Times in 0 Posts
Rep Power: 0 compgeek is an unknown quantity at this point
Single User Mode in Suse Linux 10.1 - Reset root Password?

hI FRIENDS

How to enter Single user mode in linux using GRUB and LILO
I read in a book that when the boot menu appears one has to select the linux os and type E and hit enter to get the command prompt where root password can be changed

But when i tried this in suse 10.1 [grub boot loader] i didnt get the command prompt
it directlly entered guI

Can any one tell me the way to enter single user mode in linux in detail

BYeeeeeeeeeee
compgeek is offline   Reply With Quote
Unread 28-09-2006, 04:42 AM   #2
Webmaster
 
Strider's Avatar
 
Join Date: Nov 2005
Location: Interwebs
Posts: 4,997
Thanks: 624
Thanked 726 Times in 610 Posts
Mood: Cynical
Blog Entries: 6
Rep Power: 9009 Strider is extemly EminentStrider is extemly EminentStrider is extemly EminentStrider is extemly EminentStrider is extemly EminentStrider is extemly EminentStrider is extemly EminentStrider is extemly EminentStrider is extemly EminentStrider is extemly EminentStrider is extemly Eminent

Intel Nvidia

Windows XP Windows Server 2003 / Windows Server 2008 Windows 7 Windows 8 Linux


So you followed the steps to rest the password correctly. Let me make sure once more.

1. At the GRUB boot menu select the linux option and press 'e' .

2. Choose your kernal and press 'e' once more.

3. Here in the Edit mode add the following to the end of the line leaving a space.

Quote:
single
or

Quote:
1
4. Press ENTER to exit the edit mode. Once back at the GRUB screen, press 'b' to boot into single user mode.

5. This will make you the "root" user without asking for a password. Once the system has booted, you can change the root password using the password command in the command prompt:

Quote:
passwd
Strider is online now   Reply With Quote
Unread 28-09-2006, 04:46 AM   #3
Webmaster
 
Strider's Avatar
 
Join Date: Nov 2005
Location: Interwebs
Posts: 4,997
Thanks: 624
Thanked 726 Times in 610 Posts
Mood: Cynical
Blog Entries: 6
Rep Power: 9009 Strider is extemly EminentStrider is extemly EminentStrider is extemly EminentStrider is extemly EminentStrider is extemly EminentStrider is extemly EminentStrider is extemly EminentStrider is extemly EminentStrider is extemly EminentStrider is extemly EminentStrider is extemly Eminent

Intel Nvidia

Windows XP Windows Server 2003 / Windows Server 2008 Windows 7 Windows 8 Linux


Reset Root Password - Another Complex & Risky Method

If the easy method doesn't work on your machine, another way to solve the "lost root password" problem is to boot your computer from your Linux Installation CD, or from a live-CD such as Knoppix.

Using Knoppix, boot the live-CD then go to a terminal and su to root (no password is required) then issue the following commands (be sure to replace each /hda1 with your own root partition device):

Quote:
mount -o dev,rw / mnt/hda1
cd / mnt/hda1/etc
Once you are into your system / etc directory, you can use a text editor to edit the / etc/shadow file where the password is stored.

Various information about root and user accounts is kept in this plain-text file but we are only concerned with the password portion.

For example, the / etc/shadow entry for the "root" account may look something like this:

root:$1$aB7mx0Licb$CTbs2RQrfPHkz5Vna0.fnz8H68tB.:10852:0:99999:7:::

Now, using your favorite editor delete the password hash. For this example, the actual password is in red text and is all those characters between the 1st and 2nd colons.

Quote:
vim shadow

After you've edited this field, it should look like this:


Quote:
root::10852:0:99999:7:::

Now save the file and change back to the root directory and unmount the system root partition (don't forget to change the /hda1) as follows:


Quote:
cd /
umount / mnt/hda1
Now reboot the computer.

Once the computer has booted and you're at the login prompt, type "root" and when asked for the password just press ENTER (entering no password). After a successful login, you need to set the new password for root using the following command:


Quote:
passwd
Hope this helps..
Strider is online now   Reply With Quote
The Following 2 Users Say Thank You to Strider For This Useful Post:
Dark Star (03-10-2006), thjeyam (03-02-2010)
Unread 29-09-2006, 01:14 PM   #4
Trusted Member
 
Join Date: Nov 2005
Location: Cochin
Age: 64
Posts: 63
Thanks: 11
Thanked 3 Times in 3 Posts
Rep Power: 323 Christo has a spectacular aura aboutChristo has a spectacular aura aboutChristo has a spectacular aura about
Use rescue disk to enter single user mode
__________________
Christo
http://lazyblogs.blogspot.com/
Christo is offline   Reply With Quote
Unread 30-09-2006, 09:26 AM   #5
Webmaster
 
Strider's Avatar
 
Join Date: Nov 2005
Location: Interwebs
Posts: 4,997
Thanks: 624
Thanked 726 Times in 610 Posts
Mood: Cynical
Blog Entries: 6
Rep Power: 9009 Strider is extemly EminentStrider is extemly EminentStrider is extemly EminentStrider is extemly EminentStrider is extemly EminentStrider is extemly EminentStrider is extemly EminentStrider is extemly EminentStrider is extemly EminentStrider is extemly EminentStrider is extemly Eminent

Intel Nvidia

Windows XP Windows Server 2003 / Windows Server 2008 Windows 7 Windows 8 Linux


I've installed SUSE 10.1 yesterday. It seems the Edit option in GRUB is disabled. So try the second method.
Strider is online now   Reply With Quote
Unread 02-10-2006, 11:36 AM   #6
Webmaster
 
Strider's Avatar
 
Join Date: Nov 2005
Location: Interwebs
Posts: 4,997
Thanks: 624
Thanked 726 Times in 610 Posts
Mood: Cynical
Blog Entries: 6
Rep Power: 9009 Strider is extemly EminentStrider is extemly EminentStrider is extemly EminentStrider is extemly EminentStrider is extemly EminentStrider is extemly EminentStrider is extemly EminentStrider is extemly EminentStrider is extemly EminentStrider is extemly EminentStrider is extemly Eminent

Intel Nvidia

Windows XP Windows Server 2003 / Windows Server 2008 Windows 7 Windows 8 Linux


Here is a working and tested solution for Suse Linux 10.1

http://www.techtalkz.com/tips-n-tric...html#post10200
Strider is online now   Reply With Quote
Unread 08-01-2010, 04:46 PM   #7
Newbie
 
Join Date: Jan 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0 blue is an unknown quantity at this point


Windows XP Windows Vista Linux


Re: Single User Mode in Suse Linux 10.1 - Reset root Password?

Hello all,

When I try the command #mount -o remount,rw / it was executed successfully but when I type passwd it is throwing me an error message “passwd: user not known to the underlying authentication module” Please guide me on what to do next.

Regards,
Blue
blue is offline   Reply With Quote
Unread 10-12-2012, 10:15 PM   #8
Newbie
 
PatrickBurwell's Avatar
 
Join Date: Dec 2012
Location: Earth
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Mood: Relaxed
Rep Power: 0 PatrickBurwell is an unknown quantity at this point

AMD Nvidia

Linux


Re: Single User Mode in Suse Linux 10.1 - Reset root Password?

Of course if you are using some old SuSE versions like 9, then when you boot with the
Quote:
e
boot option, choosing "Linux".
Then you need only type
Quote:
root
for the login/username and no password.
Then type
Quote:
passwd
at the shell prompt and reset, reboot and you are back in business.
if that doesn't work use Strider's second choice and again, no password is needed at the X login for root.

Have FUN with it!
PatrickBurwell is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Reset Root Password in SUSE Linux 10.1 and other Distributions Strider TIPS 'n' TRICKS 5 30-10-2009 11:41 AM
SUSE Linux & Linksys WLAN problem 'Nel' Suse Linux 1 01-09-2007 04:01 PM
How To Use alt.os.linux.suse Group Function To Start A Volunteer Project davidinvestworld Suse Linux 0 29-08-2007 02:04 PM
Error 1083 and 1955 - Single user object - write conflict and user lockout alivedata Windows Server 2003 0 28-08-2007 01:05 AM
HOW TO RESET UR ROOT PASSWORD IN LINUX ! Strider Open Source & Linux 2 07-04-2006 06:00 PM


< Home - Windows Help - MS Office Help - Hardware Support >


New To Site? Need Help?

All times are GMT. The time now is 11:01 PM.


vBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO
Copyright © 2005-2013, TechTalkz.com. All Rights Reserved - Privacy Policy
Valid XHTML 1.0 Transitional