Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 02-04-2006, 03:49 AM   #1
Registered: Apr 2004
Posts: 194

Rep: Reputation: 15
How to recover lost Root password in Suse Enterprise 9.0

Hi Guyz,

can any one help me in recovering lost Root passwrord in Suse Enterprise 9.0, since i am very well aware of Red Hat and init method. but can any one guide me how to do the same on Suse Linux

Thanks in advance
Old 02-04-2006, 04:34 AM   #2
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Have you tried booting in single user mode and just using the passwd command? If that doesn't work, you can boot with your Suse CD and edit /etc/shadow for the root user's entry - remove the text between the first and second colons ( : ).

Last edited by gilead; 02-04-2006 at 04:37 AM.
Old 02-04-2006, 05:45 AM   #3
LQ Newbie
Registered: Feb 2006
Posts: 13

Rep: Reputation: 0
Yup single user mode is the best method. Should work on most linux distros too.
Old 02-05-2006, 06:56 AM   #4
LQ Newbie
Registered: Jul 2004
Location: Berlin, Germany
Distribution: Debian Sarge, Fedora Core 4, Suse 9.1
Posts: 13

Rep: Reputation: 0
I have a vague memory that in some distros this method no longer works, and you have to supply your root password at all times (even if you specify a shell as your init-process in grub or lilo).

In that case boot your machine with a live distribution like Knoppix. Mount the root partition of your harddisk read-writable and blank out the second field of the root entry in /etc/passwd. Unmount and reboot. Now your root account has no password.


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
RedHatLinux ,Recover lost root password with GRUB boot loader Ruzzell Linux - Security 5 01-07-2011 02:21 PM
lost mysql password, can't recover slackhack Linux - Software 1 12-03-2005 05:15 PM
Lost Suse 8.0 Root Password 12jewels SUSE / openSUSE 3 03-31-2005 02:58 PM
lost root´s password on SuSE 9.0 Adrian13 Linux - Networking 13 11-27-2004 01:06 AM
Loaded Linux, lost login ID and password for superuser? How can I recover? PaulK Linux - Newbie 3 08-24-2004 10:01 PM > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 10:46 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
Open Source Consulting | Domain Registration