HI
i forgot my opensuse root password.I want to reset it immediately.I tried as per this youtube link
https://www.youtube.com/watch?v=ti6ioFMWZLI .But it is not working towards the final step.
please help with a solution.
thanks
Nithin
HI
i forgot my opensuse root password.I want to reset it immediately.I tried as per this youtube link
https://www.youtube.com/watch?v=ti6ioFMWZLI .But it is not working towards the final step.
please help with a solution.
thanks
Nithin
that video is hard to understand, try this
https://en.opensuse.org/SDB:Recover_root_password
you’d need a working live system, the install dvd should suffice, if you don’t have a live disk you can get a rescue disk here
http://download.opensuse.org/distribution/13.2/iso/
Try this:
Boot, and when you get to the Grub menu, type:
e
Scroll down to the line that starts with the word “linux”, tap the “END” key to make certain the cursor goes to the end of that line (the line wraps, so this is the best way to make certain you are at the end of that line).
There, add a space at the end, then add:
init=/bin/sh
Now, press the F10 key to boot.
At the command line, type:
passwd
The rest should be self-explanatory.
Thanks.It worked for me:)
Sorry to say that on my 13.2 it didn’t work.
When I try it that way I get “Authentication token lock busy”
I can boot openSUSE 13.2 on the very same PC from another device where I know the root password.
Isn’t there a simpler way than to reset/set the root password for the USB stick for which I don’t know it any longer?
Many thanks!
Worked fine on my 13.2 system here, when I last tried as a test…
When I try it that way I get “Authentication token lock busy”
From the first result from Google, try to run this before “passwd”:
mount -o remount,rw /
The root partition might be mounted read-only, which would of course prevent changing the root password…
That did it!
Great!
Great!
Normally the root partition should be mounted read-write by the initrd already though, so this shouldn’t be necessary.
Maybe you have “ro” as part of the kernel boot options?
In that case, systemd would mount it rw later on. But as init=/bin/sh tells the kernel to run /bin/sh as “init system” instead of init (systemd), you have to do it manually in that case I think.