Bulkley wrote:pkexec is a horror show to configure [...] What I want is a popup box asking for my root password when I need to run programs such as Synaptic
synaptic-pkexec
Head_on_a_Stick wrote: . . . the synaptic package supplies a pkexec configuration file and also a wrapper script to launch it
Add this to your menu:
- Code: Select all
synaptic-pkexec
Note though that you will need to have a graphical polkit authentication agent running to supply the password pop-up box — all of the desktop environments do this automatically but simple window manager desktops (such as openbox) will need to have the agent added to their autostart scripts.
~$ synaptic-pkexec
==== AUTHENTICATING FOR com.ubuntu.pkexec.synaptic ===
Authentication is required to run the Synaptic Package Manager
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
This incident has been reported.
Bulkley wrote:And another for gnome-disks and another for system-config-printer, etc
One might as well configure sudo
This happens in terminal
/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1 &
Head_on_a_Stick wrote:Add this line to ~/.config/openbox/autostart:
- Code: Select all
/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1 &
Bulkley wrote:Thanks. That works.
Your script
$ su -c synaptic
gksu -g synaptic
$ gnome-disks-pkexec
bash: gnome-disks-pkexec: command not found
$ pkexec gnome-disks
Unable to init server: Could not connect: Connection refused
Bulkley wrote:What you showed me how to do for Synaptic does not work for gnome-disks.
Users browsing this forum: No registered users and 1 guest