Tumbleweed 20260529 + KDE : my password is refused by sudo

HI, New here and on Linux, this is my third linux installation, first of Opensuse, installed as standalone OS on an old Lenovo laptop. My trouble that I did not find in this forum (sorry if i missed it), is that ‘sudo’ refuse my password !!. This NEVER happenned on my previous installations (FEDORA/KDE and LINUX MINT), and I know my password is correct, because I can boot Tumbleweed THAT WORKS PERFECTLY ! I have searched but did not find any solution.
So, if someone here can help … I would appreciate ! If not, I will try to make a new installation.

openSUSE uses the root PW for sudo.

Thank you Busy Penguin, you mean ALWAYS ?

OK, I guess it was a joke ? I just checked,… for nothing.
I’m french, using ‘AZERTY’ keyboard’s layout … maybe could be the trouble ?

The root account uses the system keyboard layout that might be different from the user layout of a specific user.
Then if you prefer to issue your user password for sudo install the sudo-policy-wheel-auth-self package and ensure that your user (or users that are allowed to use sudo) are members of the wheel group.

Sorry I guess I didn’t get what you meant. I’ve been reading a little more and, funny thing, some says like you do, that sudo wants the real root pw, others says policy has changed and now, opensuse is on the same wavelengh as the other distros… But you are right, in my case and with the very last release, sudo writes that it needs the root password ! Of course, I have no idea what the root PW is !

Tumbleweed is still on the “old habit” of asking for the root password.
And you should have defined a root password when installing Tumbleweed?
Leap 16.0 asks for the user password by default but can be reverted.

Thank you, you are right. I’m sorry that I was so shure that sudo was working the same way in any distro, that I didn’t defined a PW for root user, and now I can’t just tape ‘return’, it doesn’t work ! I’m gonna try your suggestion.

Sorry to ask again, but I don’t know, under openSUSE, what is the CLI command to install the package you suggest ?

Well, the command is zypper in sudo-policy-wheel-auth-self but if you don’t have a root password and sudo does not accept a user password, how do you get to a superuser command line?

Is discover asking for a PW when installing software? If not, you may try to install the package via Discover.

Well I thought about Discover and tried a search… Discover doesn’t know this package.

Doing a search, I found that I could download this package from the web, pkgs.org… but I suppose that It will ask root privilege to be installed ?

I wonder how a Tumbleweed installer can proceed to install without a sysadmin password, either a root password or the first user being a member of the wheel group and wheel-auth-self being enabled. If that really happens it is worth a bug report.

The other possibility is that the OP entered a root password “inadvertently” and now the root account is using the EN_US keyboard layout so the AZERTY keyboard entry is not recognized.
It’s a wild guess, but maybe the “user password” entered like it should be on an EN_US keyboard might be accepted as a root password for sudo…
and after that packages can be installed etc.

So, @will7369 … as a last resort, you should read this article and follow it step-by-step to create a new root password.

I used it about three years ago and it worked great.

How To: Recover the Linux root password

https://support.scc.suse.com/s/kb/How-To-Recover-the-Linux-root-password-1583239288864?language=en_US

I fired up a VM to test an actual TW ISO.

the standard setting is, that the root user has the same PW as the user, if you don’t remove the ticked box:


If you uncheck the box, the next installer window will ask for the root PW. If you try to skip the root PW setup, the installer will not proceed:

1 Like

Thank you, I’m gonna try my ‘last option’ . I made a mistake not defining the root pw because I was used to proceed this way in other distros … It’a a very fresh installation, so , if it doesn’t work, reinstalling is not a big deal

Well I dont remember about unchecking this box !

So, according to this, my user PW should be the same than my root PW ?

Did you try? I’m finalizing the VM setup to check myself what happens when this box stays ticked.