gksudo 16.10

Ralf Mardorf silver.bullet at zoho.com
Sat Nov 5 04:38:27 UTC 2016


On Fri, 4 Nov 2016 22:12:31 +0000, Colin Law wrote:
>On 4 November 2016 at 18:40, Tom H <tomh0665 at gmail.com> wrote:
>
>> On Fri, Nov 4, 2016 at 12:30 PM, Ralf Mardorf
>> <silver.bullet at zoho.com> wrote:
>>
>>  
>> > You can't install gksudo, but need to run an editor with root
>> > privileges? However, what should be the advantage of gksudo over
>> > sudo?
>> >
>> > apt update && apt install gksu  
>>
>> Exactly. There's no gksudo package. It's gksu that provides gksu and
>> gksudo.
>>
>> But gksu was deprecated a long time ago, but it was moved from "main"
>> to "universe" with 14.04 (LTS-wise; maybe it was moved earlier when
>> all releases are taken into account) probably because some DEs still
>> use it.
>>  
>
>Deprecated it may be, but I don't know how else easily to run something
>like gedit with sudo permissions.

sudo HOME=/root gedit

or

sudo -i
gedit

Nothing more is required. Perhaps, just perhaps
XDG_RUNTIME_DIR=""
might be required, if you will edit the configuration of the app you
are using. In my experiences all other variables are completely
irrelevant.





More information about the ubuntu-users mailing list