cant start gksu firefox
Dmitrijs Ledkovs
dmitrij.ledkov at ubuntu.com
Sun Apr 4 07:36:53 UTC 2010
On 4 April 2010 01:36, Tom H <tomh0665 at gmail.com> wrote:
>>>> Can you explain why gksu is a bad idea and why gksudo is better?
>
>>> gksu - executes as superuser using $HOME = /root
>>> gksudo - executes your current environment e.g. $HOME=/home/$user but
>>> with superuser priviliges.
>
>> However, on Ubuntu:
>
>> ~$ diff -as $(which gksu) $(which gksudo)
>> Files /usr/bin/gksu and /usr/bin/gksudo are identical
>
>> In fact:
>
>> ~$ ls -l $(which gksudo)
>> lrwxrwxrwx 1 root root 4 2010-02-27 02:03 /usr/bin/gksudo -> gksu
>
>> And if I've understood things correctly. on ubuntu gksu is originally
>> wired to instead work like gksudo by default.
>
> Using gksu or gksudo is the same thing.
>
> You can use "-w" to use su-mode (IIRC, you need to have the root
> password set) and you can use "-S" for sudo-mode (the default on
> Ubuntu, see [1] below).
>
> You can also use "-k" to preserve the environment.
>
> [1] In gconf-editor, by default,
> /apps/gksu/sudo-mode
> is set. If you untick it,
> gksu <app>
> will require the root password.
>
Thank you everyone. It looks like it's 2 in 1. Cause it determines
under which name it was called and outputs different help. But with
command line flags and gconf you can make it both of them work however
you like.
Something new for me for today.
More information about the Ubuntu-devel-discuss
mailing list