On Wed, Dec 01, 2010 at 03:17:42PM -0800, Andres Salomon wrote:
> On Wed, 1 Dec 2010 22:40:53 +0100
> Bill Allombert <bill.allomb...@math.u-bordeaux1.fr> wrote:
> 
> Honestly, I think this should allow for an arbitrary command.  If I'm
> not using gksudo at all, it would be nice to be able to override
> su-to-root.  If I am using gksudo, setting something globally
> in /etc/su-to-rootrc from a script is much easier than messing around
> w/ gconf settings.

Unfortunately the various su tools have incompatible command line interfaces
(which is the main reason su-to-root exist instead of using 
update-alternatives).
However, /etc/su-to-rootrc is sourced by su-to-root, so you can add
whatever bash code you want to it, including
gksu() { gksudo "$@"; }

> At the moment, I'm having problems w/ gksu and wondering why I can't
> just set SU_TO_ROOT_X=sudo (using passwordless sudo).  As I
> understand it, su-to-root doesn't enforce any security, it lets the
> backend handle it.

You cannot set SU_TO_ROOT_X to sudo, because sudo is not an X program.
Instead you can do
SU_TO_ROOT_X=su-to-root
SU_TO_ROOT_SU=sudo

Which will call sudo in an X terminal.

Now, I have no objection to add gksudo/kdesudo to su-to-root, but it would be 
nice
if d-i would configure su-to-root to use *sudo when the root-passwordless 
option is
chosen. Currently only the gconf setting is set.

Cheers,
-- 
Bill. <ballo...@debian.org>

Imagine a large red swirl here. 



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to