LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-01-2021, 01:53 PM   #1
rherbert
Member
 
Registered: Nov 2003
Location: Canada
Distribution: Slackware
Posts: 102

Rep: Reputation: 65
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?

Thanks.
Attached Thumbnails
Click image for larger version

Name:	kdesu.png
Views:	35
Size:	28.1 KB
ID:	37350  
 
Old 10-01-2021, 02:03 PM   #2
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,525

Rep: Reputation: 3356Reputation: 3356Reputation: 3356Reputation: 3356Reputation: 3356Reputation: 3356Reputation: 3356Reputation: 3356Reputation: 3356Reputation: 3356Reputation: 3356
I confirm that the /usr/bin/kdesu symlink points to /usr/lib64/kf5/kdesu instead of current correct location: /usr/lib64/libexec/kf5/kdesu
 
Old 10-02-2021, 09:00 AM   #3
Franklin
Senior Member
 
Registered: Oct 2002
Distribution: Slackware
Posts: 1,348

Rep: Reputation: 217Reputation: 217Reputation: 217
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.
 
Old 10-02-2021, 10:00 AM   #4
marco70
Member
 
Registered: Sep 2009
Distribution: Slackware
Posts: 103

Rep: Reputation: 39
https://www.linuxquestions.org/quest...ml#post6288197
 
1 members found this post helpful.
Old 10-02-2021, 10:32 AM   #5
Franklin
Senior Member
 
Registered: Oct 2002
Distribution: Slackware
Posts: 1,348

Rep: Reputation: 217Reputation: 217Reputation: 217
Thanks Marco70. Can confirm:

Quote:
The problem is still with the kdesu_stub
Only works when it is in the directory /usr/lib64/kf5
 
1 members found this post helpful.
Old 10-02-2021, 12:11 PM   #6
rherbert
Member
 
Registered: Nov 2003
Location: Canada
Distribution: Slackware
Posts: 102

Original Poster
Rep: Reputation: 65
Thanks marco70, Franklin, and of course, Pat.

Quote:
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.
 
Old 10-02-2021, 04:24 PM   #7
Franklin
Senior Member
 
Registered: Oct 2002
Distribution: Slackware
Posts: 1,348

Rep: Reputation: 217Reputation: 217Reputation: 217
The latest update (10/2 #2) fixes this for me.
 
Old 10-02-2021, 10:46 PM   #8
rherbert
Member
 
Registered: Nov 2003
Location: Canada
Distribution: Slackware
Posts: 102

Original Poster
Rep: Reputation: 65
Quote:
The latest update (10/2 #2) fixes this for me.
Here too. :-)

Thanks guys. Marking thread solved.
 
Old 10-04-2021, 05:58 AM   #9
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,386

Rep: Reputation: 4105Reputation: 4105Reputation: 4105Reputation: 4105Reputation: 4105Reputation: 4105Reputation: 4105Reputation: 4105Reputation: 4105Reputation: 4105Reputation: 4105
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:
Code:
QDBusError("org.freedesktop.DBus.Error.AccessDenied", "")
and asks for a password
 
Old 10-04-2021, 06:38 AM   #10
ctrlaltca
Member
 
Registered: May 2019
Location: Italy
Distribution: Slackware
Posts: 327

Rep: Reputation: 365Reputation: 365Reputation: 365Reputation: 365
Quote:
Originally Posted by marav View Post
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.
 
Old 10-04-2021, 06:53 AM   #11
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,525

Rep: Reputation: 3356Reputation: 3356Reputation: 3356Reputation: 3356Reputation: 3356Reputation: 3356Reputation: 3356Reputation: 3356Reputation: 3356Reputation: 3356Reputation: 3356
I believe that there is still an issue on the /etc/profile.d scripts of Plasma5.

Code:
# Add KDE paths if they exist:
if [ -d /usr/lib64/kf5 ]; then
  PATH="$PATH:/usr/lib64/libexec/kf5"
fi
I do not understand the point of checking a particular directory existence, then adding another and entire different directory to the $PATH ...

And, in fact this check should return false, because /usr/lib64/kf5 is today a symlink, not a directory.

Probably there's a bug on coreutils or whatever, which makes this logic to still work.

Last edited by LuckyCyborg; 10-04-2021 at 07:02 AM.
 
1 members found this post helpful.
Old 10-04-2021, 06:53 AM   #12
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,525

Rep: Reputation: 3356Reputation: 3356Reputation: 3356Reputation: 3356Reputation: 3356Reputation: 3356Reputation: 3356Reputation: 3356Reputation: 3356Reputation: 3356Reputation: 3356
I believe that there is still an issue on the /etc/profile.d scripts of Plasma5.

Code:
# Add KDE paths if they exist:
if [ -d /usr/lib64/kf5 ]; then
  PATH="$PATH:/usr/lib64/libexec/kf5"
fi
I do not understand the point of checking a particular directory existence, then adding another and entire different directory to the $PATH ...

And, in fact this check should return false, because /usr/lib64/kf5 is today a symlink, not a directory.

Probably there's a bug on coreutils or whatever, which makes this logic to still work.

Last edited by LuckyCyborg; 10-04-2021 at 07:02 AM.
 
1 members found this post helpful.
Old 10-04-2021, 07:38 AM   #13
ctrlaltca
Member
 
Registered: May 2019
Location: Italy
Distribution: Slackware
Posts: 327

Rep: Reputation: 365Reputation: 365Reputation: 365Reputation: 365
Quote:
Originally Posted by LuckyCyborg View Post
I believe that there is still an issue on the /etc/profile.d scripts of Plasma5.
Nice catch!

Quote:
Originally Posted by LuckyCyborg View Post
Probably there's a bug on coreutils or whatever, which makes this logic to still work.
From the "test" man page:
Code:
Except  for  -h and -L, all FILE-related tests dereference symbolic links.

Last edited by ctrlaltca; 10-04-2021 at 07:39 AM.
 
Old 10-04-2021, 07:39 AM   #14
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,386

Rep: Reputation: 4105Reputation: 4105Reputation: 4105Reputation: 4105Reputation: 4105Reputation: 4105Reputation: 4105Reputation: 4105Reputation: 4105Reputation: 4105Reputation: 4105
Quote:
Originally Posted by ctrlaltca View Post
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

Last edited by marav; 10-04-2021 at 07:40 AM.
 
Old 10-04-2021, 08:33 AM   #15
ctrlaltca
Member
 
Registered: May 2019
Location: Italy
Distribution: Slackware
Posts: 327

Rep: Reputation: 365Reputation: 365Reputation: 365Reputation: 365
It seems to work here, from secure:
Code:
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

Last edited by ctrlaltca; 10-04-2021 at 08:36 AM.
 
1 members found this post helpful.
Old 10-04-2021, 09:20 AM   #16
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,386

Rep: Reputation: 4105Reputation: 4105Reputation: 4105Reputation: 4105Reputation: 4105Reputation: 4105Reputation: 4105Reputation: 4105Reputation: 4105Reputation: 4105Reputation: 4105

Quote:
Originally Posted by ctrlaltca View Post
It seems to work here, from secure:
Code:
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)"
fixed with :
Code:
$ chmod +s /usr/lib/polkit-1/polkit-agent-helper-1
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Thu Feb 18 19:29:30 UTC 2021 and 20:47:35 UTC 2021: Strange ChangeLog? Thom1b Slackware 4 02-20-2021 01:55 AM
Current Fri Oct 19 - puseaudio segfauts H1p8r10n Slackware 13 10-24-2018 04:03 AM
-current [Fri Jun 24 23:37:19 UTC 2016]: xfce4-power-manager does not display battery level K-Wizzz Slackware 10 06-26-2016 04:25 PM
Issues in -current as at Fri Aug 21 21:17:48 UTC 2015 allend Slackware 29 08-26-2015 09:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration