cannot run root-programs from menu (Gparted; luckyBackup) on current
by brobr from LinuxQuestions.org on (#5CA7M)
Hi,
Since the latest current-updates I do not get any response when running gparted or SBo-package luckyBackup from the xfce Applications/System menu.
gparted is loaded via `Exec=/usr/bin/gparted %f` (acc to its .desktop file)
Running from the cli with sudo works for both programs.
I am using slim as login manager (no idea whether that makes a difference)
I found this when trying to build/use luckyBackup on current, which compiles when qmake-qt5 is used instead of qmake in the SlackBuild.
Launching luckyBackup from user-space as root no longer works as before via the command `Exec=/usr/bin/luckybackup-pkexec` (in the luckybackup-su.desktop file), which gives (when run from command line)
Code:bash-5.1$ /usr/bin/luckybackup-pkexec
==== AUTHENTICATING FOR net.luckybackup.su ====
Authentication is required to launch luckyBackup
Authenticating as: root
Password:
polkit-agent-helper-1: error response to PolicyKit daemon: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: No session for cookie
==== AUTHENTICATION FAILED ====
Error executing command as another user: Not authorized
It looks like this bug-report: https://bugs.debian.org/cgi-bin/bugr...cgi?bug=841878
The /usr/libexec/polkit-gnome-authentication-agent-1 (trying to follow the advice in that report) gives
Quote:
Would love to get the expected behavior back (login-dialog asking for root password)...


Since the latest current-updates I do not get any response when running gparted or SBo-package luckyBackup from the xfce Applications/System menu.
gparted is loaded via `Exec=/usr/bin/gparted %f` (acc to its .desktop file)
Running from the cli with sudo works for both programs.
I am using slim as login manager (no idea whether that makes a difference)
I found this when trying to build/use luckyBackup on current, which compiles when qmake-qt5 is used instead of qmake in the SlackBuild.
Launching luckyBackup from user-space as root no longer works as before via the command `Exec=/usr/bin/luckybackup-pkexec` (in the luckybackup-su.desktop file), which gives (when run from command line)
Code:bash-5.1$ /usr/bin/luckybackup-pkexec
==== AUTHENTICATING FOR net.luckybackup.su ====
Authentication is required to launch luckyBackup
Authenticating as: root
Password:
polkit-agent-helper-1: error response to PolicyKit daemon: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: No session for cookie
==== AUTHENTICATION FAILED ====
Error executing command as another user: Not authorized
It looks like this bug-report: https://bugs.debian.org/cgi-bin/bugr...cgi?bug=841878
The /usr/libexec/polkit-gnome-authentication-agent-1 (trying to follow the advice in that report) gives
Quote:
(polkit-gnome-authentication-agent-1:2105): polkit-gnome-1-WARNING **: 22:21:17.429: Unable to determine the session we are in: No session for pid 2105 |