grep 'action id' /usr/share/polkit-1/actions/* | awk -F'=' '{print $2}'
Leoncio wrote:Buster is the stable version of Debian ans stable means STABLE; without the small problems we could find in in Testing or Sid. Debian should not have released a new stable release without a straightforward replacement of kdesudo and gsudo. This is UNACCEPTABLE.
gedit admin:///full/path/to/file
L_V wrote: Could you please give only one exeample to explain why you need to open a file manager as root user (assuming you understand the risks) ?
SUDO_ASKPASS=/usr/bin/ssh-askpass sudo -A synaptic
Head_on_a_Stick wrote:The development trend now is to use pkexec to open the GUI as a normal user and only run the actual code needed to perform the operation as root.
For example, to edit a system file use
- Code: Select all
gedit admin:///full/path/to/file
^ That will open a copy of the file in gedit (as the normal user) and only invoke root (via gvfs & polkit) to save the file.
SUDO_ASKPASS=/usr/bin/ssh-askpass sudo -A "command-to-be-run"
This is the only one concrete example I required to illustrate.Leoncio wrote:I may be in a file manager, maybe as a normal user and I may want to edit a configuration from /etc.
alias nanosl='sudo nano /etc/apt/sources.list'
Deb-fan wrote:...Personally planning to continue using gksu/do for awhile yet.
L_V wrote:Then try to open '/etc/apt/sources.list' in kate or kwrite from Dolphin as user.
After modification of this file, you can save it: your password is requested if you are declared as sudoers: is it a problem ? How often do you need this kind of operation ?
SUDO_ASKPASS=/usr/bin/ssh-askpass sudo -A "command-to-be-run"
Return to System configuration
Users browsing this forum: No registered users and 12 guests