gksu removed from the repo's of Ubuntu 18.04
Forum rules
Do not post support questions here. Before you post read the forum rules. Topics in this forum are automatically closed 6 months after creation.
Do not post support questions here. Before you post read the forum rules. Topics in this forum are automatically closed 6 months after creation.
Re: gksu removed from the repo's of Ubuntu 18.04
In Nemo you can browse to a folder, right click on the background in the file display area and select 'open as root.' Displaying a file from the window will then open the editor with elevated privileges.
Re: gksu removed from the repo's of Ubuntu 18.04
...now that 19 Beta is actually available, i thought of further asking & bumping up this thread...
Per this discussion here -> viewtopic.php?f=46&t=270632
xed admin:/// returns 'WARNING **: 17:13:04.337: The specified location is not mounted'
So i wanted to ask, is this just a harmless warning coming from the gvfs backend?
Or would pkexec xed be a 'safer' choice instead?
Per this discussion here -> viewtopic.php?f=46&t=270632
xed admin:/// returns 'WARNING **: 17:13:04.337: The specified location is not mounted'
So i wanted to ask, is this just a harmless warning coming from the gvfs backend?
Or would pkexec xed be a 'safer' choice instead?
- Pjotr
- Level 24
- Posts: 20133
- Joined: Mon Mar 07, 2011 10:18 am
- Location: The Netherlands (Holland) 🇳🇱
- Contact:
Re: gksu removed from the repo's of Ubuntu 18.04
You have to provide the full path withthx-1138 wrote: ⤴Tue Jun 05, 2018 7:46 pm ...now that 19 Beta is actually available, i thought of further asking & bumping up this thread...
Per this discussion here -> viewtopic.php?f=46&t=270632
xed admin:/// returns 'WARNING **: 17:13:04.337: The specified location is not mounted'
So i wanted to ask, is this just a harmless warning coming from the gvfs backend?
Or would pkexec xed be a 'safer' choice instead?
admin://
. So, for editing /etc/default/grub
:
Code: Select all
xed admin:///etc/default/grub
Tip: 10 things to do after installing Linux Mint 21.3 Virginia
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.
Re: gksu removed from the repo's of Ubuntu 18.04
Pjotr, using the full path was what returned the warning (xed admin:///etc/initramfs-tools/conf.d/resume)...
So I assume that gvfs maybe is slightly happier by first 'mounting' the admin:// path (ie. opening such in whatever file browser),
and only afterwards opening the file for editing...
So I assume that gvfs maybe is slightly happier by first 'mounting' the admin:// path (ie. opening such in whatever file browser),
and only afterwards opening the file for editing...
Re: gksu removed from the repo's of Ubuntu 18.04
anyone know if possible to save password when using
using gedit admin:/// you can't any preferences
pkexec
so you only have to enter once for session? this is the main reason i use gksu i edit a lot of icons,configs, and misc files in root with multiple programs, having to enter password for every root action will get ridiculous and if possible not use extra services or daemons just for password saving. using gedit admin:/// you can't any preferences
Re: gksu removed from the repo's of Ubuntu 18.04
In Xubuntu 18.04, I installed gksu from https://www.ubuntuupdates.org/package_m ... h=1&q=gksu
Re: gksu removed from the repo's of Ubuntu 18.04
In Xubuntu 18.04 there is no need for gksu.
pkexec is a one-to-one replacement for gksu as long as you use the default applications. So these work out of the box:
That's possible because Xubuntu took the trouble to create polkit "rules" for their applications.
pkexec is a one-to-one replacement for gksu as long as you use the default applications. So these work out of the box:
pkexec thunar
& pkexec mousepad
That's possible because Xubuntu took the trouble to create polkit "rules" for their applications.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
Re: gksu removed from the repo's of Ubuntu 18.04
Also in Kubuntu you just bring up the editor you want to use and do the edit and when you save it if you need root privileges it automatically asks for you password.
Wish Mint would follow their example here. The pkexec method seems difficult to me.
But it is what it is for now.
Will have to see what rules kubuntu/xubuntu is using and see if it can be incorporated into mint.
Wish Mint would follow their example here. The pkexec method seems difficult to me.
But it is what it is for now.
Will have to see what rules kubuntu/xubuntu is using and see if it can be incorporated into mint.
Easy tips : https://easylinuxtipsproject.blogspot.com/ Pjotr's Great Linux projects page.
Linux Mint Installation Guide: http://linuxmint-installation-guide.rea ... en/latest/
Registered Linux User #462608
Linux Mint Installation Guide: http://linuxmint-installation-guide.rea ... en/latest/
Registered Linux User #462608
Re: gksu removed from the repo's of Ubuntu 18.04
You are mixing desktop environments and editors here though. The behaviour you describe is a feature of Kate, Kubuntu's default text editor. You can install Kate on Mint if you don't have it, it's in the repo.kc1di wrote: ⤴Fri Jun 29, 2018 7:26 am Also in Kubuntu you just bring up the editor you want to use and do the edit and when you save it if you need root privileges it automatically asks for you password.
Wish Mint would follow their example here. The pkexec method seems difficult to me.
But it is what it is for now.
Will have to see what rules kubuntu/xubuntu is using and see if it can be incorporated into mint.
Re: gksu removed from the repo's of Ubuntu 18.04
Because pkexec is a(-nother) complicated kludge from "freedesktop.org" and it'll cause problems.
Code: Select all
$ synaptic-pkexec
==== AUTHENTICATING FOR com.ubuntu.pkexec.synaptic ===
Authentication is required to run the Synaptic Package Manager
Authenticating as: <username>,,, (<username>)
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.
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
Your data and OS are backed up....right?
Re: gksu removed from the repo's of Ubuntu 18.04
That's better than being abused by malware from freedesktop.org.
$ cat bin/Gksudo
Code: Select all
#!/bin/sh
#
# Use this when gksu goes away.
#
xfce4-terminal --command="sudo -H -i -u root bash -c '$*' &" --geometry=45x10
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
Your data and OS are backed up....right?
Re: gksu removed from the repo's of Ubuntu 18.04
Does synaptic work when you run from the program menu?Flemur wrote: ⤴Fri Jun 29, 2018 9:28 amBecause pkexec is a(-nother) complicated kludge from "freedesktop.org" and it'll cause problems.
Reported! No session for cookie!Code: Select all
$ synaptic-pkexec ==== AUTHENTICATING FOR com.ubuntu.pkexec.synaptic === Authentication is required to run the Synaptic Package Manager Authenticating as: <username>,,, (<username>) 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.
Re: gksu removed from the repo's of Ubuntu 18.04
How do you run commands like system-config-samba:
I tried using pkexec:
It used to work fine from menu with gksu and gksudo in prior versions of mint including mint 18.3
I tried using pkexec:
Code: Select all
cryptodan@alphacentauri:~$ pkexec system-config-samba
/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
warnings.warn(str(e), _gtk.Warning)
/usr/share/system-config-samba/mainWindow.py:62: Warning: invalid (NULL) pointer instance
self.xml = gtk.glade.XML ("/usr/share/system-config-samba/system-config-samba.glade", domain="system-config-samba")
/usr/share/system-config-samba/mainWindow.py:62: Warning: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
self.xml = gtk.glade.XML ("/usr/share/system-config-samba/system-config-samba.glade", domain="system-config-samba")
/usr/share/system-config-samba/mainWindow.py:62: GtkWarning: IA__gtk_settings_get_for_screen: assertion 'GDK_IS_SCREEN (screen)' failed
self.xml = gtk.glade.XML ("/usr/share/system-config-samba/system-config-samba.glade", domain="system-config-samba")
/usr/share/system-config-samba/mainWindow.py:62: Warning: g_object_get: assertion 'G_IS_OBJECT (object)' failed
self.xml = gtk.glade.XML ("/usr/share/system-config-samba/system-config-samba.glade", domain="system-config-samba")
/usr/share/system-config-samba/mainWindow.py:62: GtkWarning: IA__gdk_pango_context_get_for_screen: assertion 'GDK_IS_SCREEN (screen)' failed
self.xml = gtk.glade.XML ("/usr/share/system-config-samba/system-config-samba.glade", domain="system-config-samba")
/usr/share/system-config-samba/mainWindow.py:62: PangoWarning: pango_context_set_font_description: assertion 'context != NULL' failed
self.xml = gtk.glade.XML ("/usr/share/system-config-samba/system-config-samba.glade", domain="system-config-samba")
/usr/share/system-config-samba/mainWindow.py:62: PangoWarning: pango_context_set_base_dir: assertion 'context != NULL' failed
self.xml = gtk.glade.XML ("/usr/share/system-config-samba/system-config-samba.glade", domain="system-config-samba")
/usr/share/system-config-samba/mainWindow.py:62: PangoWarning: pango_context_set_language: assertion 'context != NULL' failed
self.xml = gtk.glade.XML ("/usr/share/system-config-samba/system-config-samba.glade", domain="system-config-samba")
/usr/share/system-config-samba/mainWindow.py:62: PangoWarning: pango_layout_new: assertion 'context != NULL' failed
self.xml = gtk.glade.XML ("/usr/share/system-config-samba/system-config-samba.glade", domain="system-config-samba")
/usr/share/system-config-samba/mainWindow.py:62: PangoWarning: pango_layout_set_attributes: assertion 'layout != NULL' failed
self.xml = gtk.glade.XML ("/usr/share/system-config-samba/system-config-samba.glade", domain="system-config-samba")
/usr/share/system-config-samba/mainWindow.py:62: PangoWarning: pango_layout_set_text: assertion 'layout != NULL' failed
self.xml = gtk.glade.XML ("/usr/share/system-config-samba/system-config-samba.glade", domain="system-config-samba")
/usr/share/system-config-samba/mainWindow.py:62: PangoWarning: pango_layout_get_unknown_glyphs_count: assertion 'PANGO_IS_LAYOUT (layout)' failed
self.xml = gtk.glade.XML ("/usr/share/system-config-samba/system-config-samba.glade", domain="system-config-samba")
/usr/share/system-config-samba/mainWindow.py:62: Warning: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
self.xml = gtk.glade.XML ("/usr/share/system-config-samba/system-config-samba.glade", domain="system-config-samba")
/usr/share/system-config-samba/mainWindow.py:62: Warning: value "TRUE" of type 'gboolean' is invalid or out of range for property 'visible' of type 'gboolean'
self.xml = gtk.glade.XML ("/usr/share/system-config-samba/system-config-samba.glade", domain="system-config-samba")
/usr/share/system-config-samba/mainWindow.py:62: GtkWarning: IA__gdk_screen_get_display: assertion 'GDK_IS_SCREEN (screen)' failed
self.xml = gtk.glade.XML ("/usr/share/system-config-samba/system-config-samba.glade", domain="system-config-samba")
/usr/share/system-config-samba/mainWindow.py:62: GtkWarning: IA__gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed
self.xml = gtk.glade.XML ("/usr/share/system-config-samba/system-config-samba.glade", domain="system-config-samba")
Segmentation fault (core dumped)
Re: gksu removed from the repo's of Ubuntu 18.04
system-config-samba is from 2008 and aside from two minor build fixes unchanged since. It will require attention from maintainers now to continue to work. The maintainer clearly didn't test it as part of Ubuntu 18.04. There is a bug report for it that has a workaround to be able to use it with pkexec: https://bugs.launchpad.net/ubuntu/+sour ... ug/1772127
The general answer is that GUI programs that need elevated privileges need to be updated to use polkit. In this case neither the developers nor the maintainers appear to have done the work and just packaged a program that doesn't work.
Re: gksu removed from the repo's of Ubuntu 18.04
I copied /usr/bin/gksudo from an 18.3 distribution to my 19 distro. Works just fine.
Well. It doesn't, actually. It doesn't accept the correct password.
Later posts for this theme have revealed that pkexec replaces gksudo.
A simple solution would be to make a link:
cd /usr/bin
sudo ln -s pkexec gksudo
This way you don't have to edit an unknown number of scripts that use gksudo, but when you do: Change to pkexec.
Well. It doesn't, actually. It doesn't accept the correct password.
Later posts for this theme have revealed that pkexec replaces gksudo.
A simple solution would be to make a link:
cd /usr/bin
sudo ln -s pkexec gksudo
This way you don't have to edit an unknown number of scripts that use gksudo, but when you do: Change to pkexec.
Last edited by ingeva on Fri Jul 06, 2018 6:00 am, edited 2 times in total.
Mint rules! (20.1 MATE) Cinnamon go home! :)
- Pjotr
- Level 24
- Posts: 20133
- Joined: Mon Mar 07, 2011 10:18 am
- Location: The Netherlands (Holland) 🇳🇱
- Contact:
Re: gksu removed from the repo's of Ubuntu 18.04
You're taking risks, though... Note that pkexec is by design more secure than gksu (which is why gksu was abandoned in the first place), and furthermore: gksu doesn't get any security updates anymore.
I advise to go with the flow, and switch to
pkexec
and admin://
.Tip: 10 things to do after installing Linux Mint 21.3 Virginia
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.
Re: gksu removed from the repo's of Ubuntu 18.04
This works in caja also.
Easy tips : https://easylinuxtipsproject.blogspot.com/ Pjotr's Great Linux projects page.
Linux Mint Installation Guide: http://linuxmint-installation-guide.rea ... en/latest/
Registered Linux User #462608
Linux Mint Installation Guide: http://linuxmint-installation-guide.rea ... en/latest/
Registered Linux User #462608
- Mr_Sinister
- Level 1
- Posts: 17
- Joined: Sat Jul 08, 2017 3:57 am
Re: gksu removed from the repo's of Ubuntu 18.04
Re: gksu removed from the repo's of Ubuntu 18.04
That's odd.It works in Ubuntu 18.04 MATE. Why would Mint have removed the option? Can you open Caja with:Nope,
Just upgraded from 18.3 to 19 and this particular feature is gone. And I need it badly.
Code: Select all
pkexec caja
Re: gksu removed from the repo's of Ubuntu 18.04
It's called "Open as Administrator". Mr_Sinister apparently is searching for "Open as Root" which is the same thing though
For even safer use you can click the pen icon button at the start of the location bar in Caja and prefix the path with admin:// (e.g., admin:///etc for /etc). Or from terminal:
For even safer use you can click the pen icon button at the start of the location bar in Caja and prefix the path with admin:// (e.g., admin:///etc for /etc). Or from terminal:
caja admin:///etc