Share your knowledge at the LQ Wiki.
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-17-2009, 04:39 AM   #1
LQ Newbie
Registered: May 2009
Posts: 7

Rep: Reputation: 0
Forgot my su password - opensuse

Hi everyone, I'm new to linux - opensuse and i'v forgoten my superuser password or perhaps i changed to an unknown word when i was experimenting with it. My default runlevel is level 3 so without the su password, i can't even get to level 5. How do i recover it or bypass it to get to level 5. Thanks.
Old 05-17-2009, 05:21 AM   #2
Senior Member
Registered: Dec 2005
Location: Finland
Distribution: Slackware, CentOS, RHEL, OpenBSD
Posts: 1,006

Rep: Reputation: 37
When you boot up the machine it goes through boot manager that I think is Grub in SUSE.
You can use Grub to boot to single user mode to change your password

Here's how you boot.
Then just use passwd to change your root password.
Old 05-17-2009, 05:25 AM   #3
Registered: Aug 2007
Location: Buffalo, NY
Distribution: Fedora 7, RHEL5, CentOS 5 and Backtrack 2.0
Posts: 73

Rep: Reputation: 15
No need to panic just relax..... Follow the following steps:

1. Power on ur computer nd wait for grub screen to show up. Quickly press any key except enter key nd it would ask u to choose from the different OS installed on ur computer.

2. Move to the openSuse entry and press "e" to edit.

3. It would show smthing like:

kernel /boot/vmlinuz-2.***** ro root=LABEL=/ rhgb quiet
initrd /bot/initrd-2.***.img

4. Go to the second entry i.e. the kernel entry and again presss "e" to edit...

5. At the end simply add 1 (this denotes runlevel 1 i.e. the single user mode). Press enter and it would get u to the previous screen.

6. Press "b" to boot through the edited entry. And it would take you to run-level 1.

7. when the command line shows up u wd b there as root user.

8. type "passwd" this command is used to change ur password. It would not ask for the old password. u simply have to give ur new password and confirm it once. Voila u r done... Either restart ur pc or type "init 3" or "init 5" to move to ur desired runlevel.

9. In case u get any problem feel free to ask.


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 to retrieve( or reset) root password in Mandrake Linux, as I forgot my password? Reghunath Linux - Software 4 05-08-2008 04:11 AM
Forgot my Password khattaking Solaris / OpenSolaris 2 07-20-2006 12:33 PM
opensuse, problem with... umm, I forgot Titan2k SUSE / openSUSE 3 11-23-2005 08:43 AM
what to do when forgot your password? isamitch Linux - General 11 07-23-2004 01:57 PM
forgot my password ? i can change the password JrLz Linux - Security 9 04-06-2004 07:36 PM > Forums > Linux Forums > Linux - Newbie

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