[SOLVED] Fri Oct 1 00:21:20 UTC 2021 -current - kdesu not authenticating
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Fri Oct 1 00:21:20 UTC 2021 -current - kdesu not authenticating
Since installing last night's update to -current, kdesu is no longer authenticating the user.
I found a broken symlink in /usr/bin/ and corrected it to point to the new location of kdesu, as well as creating symlinks for kdesud and kdesu_stub in order to quell errors I saw when launching kdesu in a terminal (where kdesu actually *does* work). It only seems to be borked in the DE. I tried reinstalling the kdesu package, but all that does is re-create the broken symlink. Is it only me?
10/2 update to -current does not appear to have fixed this (though the broken symlink has been fixed). kdesu does not recognize the root password from my normal user or test login. When run from the terminal in KDE:
Code:
test@slackbox:~$ kdesu dolphin
kf.su: kdesud daemon not found.
org.kde.kdesu: Daemon not safe (not sgid), not using it.
I'm presented with the dialogue box to enter the root passowrd, but it fails. Root password seems to be recognized everywhere else.
The problem is still with the kdesu_stub
Only works when it is in the directory /usr/lib64/kf5
As a workaround, I created and dove into the directory /usr/lib64/kf5/, and then created a symlink to /usr/lib64/libexec/kf5/kdesu_stub. As a result, kdesu now authenticates root.
I am using this thread to share an observation (which may not be the case for everyone):
I added kdesu in the application launcher for gparted and partitionmanager
"command" :
gparted --> kdesu gparted
partitionmanager --> kdesu partitionmanager
as a result,
- gparted launches correctly
- and in : info center / devices / "smart" state / partitionmanager
I don't get this error anymore:
I am using this thread to share an observation (which may not be the case for everyone):
I added kdesu in the application launcher for gparted and partitionmanager
"command" :
gparted --> kdesu gparted
partitionmanager --> kdesu partitionmanager
GParted should already try to run as root and ask for a password.
If you take a look at /usr/bin/gparted, it's a shell script that uses pkexec to run /usr/libexec/gpartedbin (the real executable) as root.
Partitiomanager instead should run as a normal user, but use kauth when needed to to run specific commands as root.
Under wayland this can be confusing because sometimes the policykit dialog asking for the root password appears behind the main application window.
GParted should already try to run as root and ask for a password.
If you take a look at /usr/bin/gparted, it's a shell script that uses pkexec to run /usr/libexec/gpartedbin (the real executable) as root.
Partitiomanager instead should run as a normal user, but use kauth when needed to to run specific commands as root.
Under wayland this can be confusing because sometimes the policykit dialog asking for the root password appears behind the main application window.
if I don't have kdesu a the beginnig of the command, it gives me this error, in /var/log/secure :
Code:
secure:Oct 4 12:18:43 blackstar pkexec[5110]: marav: Error executing command as another user: Not authorized [USER=root]
[TTY=/dev/pts/3] [CWD=/home/marav] [COMMAND=/usr/bin/gparted]
I see the window of kdesu appearing, but it closes immediately
Oct 4 15:29:28 sprawl polkitd[4313]: Operator of unix-session:1 successfully authenticated as unix-user:root to gain ONE-SHOT authorization for action org.gnome.gparted for unix-process:18421:27652872 [/bin/sh /usr/bin/gparted] (owned by unix-user:fabio)
Do you have polkitd and polkit-kde-authentication-agent-1 running?
Do you have a /usr/share/polkit-1/actions/org.gnome.gparted.policy file?
Can you check the contents of ~/.local/share/sddm/wayland-session.log (or xorg-session.log) while running it?
This is what i see here:
Quote:
polkit_qt_listener_initiate_authentication callback for 0x8f8000
Initiating authentication
Message of action: "Č richiesto autenticarsi per eseguire «Editor di partizioni GParted» come root"
Action description has been found
WinId of the dialog is 14680159 14680159
WinId of the shown dialog is 14680159 14680159
Trying again
REQUEST
Request: "Password: "
"Password: "
Dialog accepted
COMPLETED
Completed: true
Finishing obtaining privileges
Listener adapter polkit_qt_listener_initiate_authentication_finish
polkit_qt_listener_initiate_authentication_finish callback for 0x8f8000
Oct 4 15:29:28 sprawl polkitd[4313]: Operator of unix-session:1 successfully authenticated as unix-user:root to gain ONE-SHOT authorization for action org.gnome.gparted for unix-process:18421:27652872 [/bin/sh /usr/bin/gparted] (owned by unix-user:fabio)
Do you have polkitd and polkit-kde-authentication-agent-1 running?
Do you have a /usr/share/polkit-1/actions/org.gnome.gparted.policy file?
Can you check the contents of ~/.local/share/sddm/wayland-session.log (or xorg-session.log) while running it?
This is what i see here:
Thx for the leads
Code:
Error: "Incorrect permissions on /usr/lib/polkit-1/polkit-agent-helper-1 (needs to be setuid root)"
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.