root password lost/not working

Hi Im running a newly installed Opensuse tumbleweed system, and after a reboot I cant access any admin guis, or su. I keep getting “authentication failures” (Im sure its the right password) and when i use sudo i get:

sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set

Any and all help appreciated :smiley:

On Wed, 21 Jun 2017 22:26:02 +0000, faslger wrote:

> Hi Im running a newly installed Opensuse tumbleweed system, and after a
> reboot I cant access any admin guis, or su. I keep getting
> “authentication failures” (Im sure its the right password) and when i
> use sudo i get:
>
>
> Code:
> --------------------
> sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit
> set
> --------------------
>
>
> Any and all help appreciated :smiley:

Try this:

https://en.opensuse.org/SDB:Recover_root_password

Jim


Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

Also remember passwords and most other things in Linux are case sensitive

I’m wondering if the OP went to Yast Security Center, and tightened up security. He may have tightened so much that nothing works.

Well, Yup I did. What setting could I have changed that would, break my install lol? Changing my root password didnt work, I still get the auth failure, and if it helps I cant log back in after locking the screen.

Set things too tight and you lock yourself out. Perhaps logging into run level 1 and running yast may alow a change but not certain even that works:O

Huh, I booted in and changed the file permissions/security from “paranoid” to “easy” and that certainly worked :stuck_out_tongue:

Coming back to your first post (a bit late after you found how to solve things, but maybe it helps for the next time you get an error message). the first thing to do after such an error message is of course checking what is said there. Were it only to find out which of both possibilities (or both) are true.

ls -s /usr/bin/sudo

Although I haven’t seen in many, many years (and openSUSE versions),
It may be important to describe clearly how you’re using the root password… if it’s when using “su” or “sudo” or something else.

Years ago(I haven’t seen recently) from time to time I couldn’t elevate permissions in a console (or elevate permissions for an app).

Solution:
Log out and log in as root user temporarily, then reset the root password even though it’s exactly the password used to login.
Then log out and back in with your normal User.
Problem solved.

TSU