LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Forgot my su password - opensuse (https://www.linuxquestions.org/questions/linux-newbie-8/forgot-my-su-password-opensuse-726539/)

edmondgyampoh 05-17-2009 04:39 AM

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.

Zmyrgel 05-17-2009 05:21 AM

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.

author_unknown 05-17-2009 05:25 AM

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:

root(hd0,0)
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.


All times are GMT -5. The time now is 11:20 PM.