Re: sudo in X-environment
On Fri, 2014-05-02 at 14:04 +0200, Slavko wrote:
> Ahoj,
>
> Dňa Thu, 1 May 2014 20:33:17 +0000 Артур Истомин <art.istom@yandex.ru>
> napísal:
>
> > On Thu, May 01, 2014 at 07:29:08PM +0100, Tom Furie wrote:
> > > Here, have a wrapper script
> > >
> > > --8x--------------------
> > >
> > > #!/bin/sh
> > >
> > > xhost + si:localuser:root
> > > sudo $@
> > > xhost - si:localuser:root
> > >
> > > --8x--------------------
>
> And what about gksu(do)?
>
> ... and preserving environment when acting as a su frontend. It is
> useful to menu items or other graphical programs that need to ask a
> user's password to run another program as another user.
For gksudo you also need xhost.
Reply to: