[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: sudo in X-environment



On Fri, May 2, 2014 at 10:30 AM, Ralf Mardorf
<ralf.mardorf@alice-dsl.net> wrote:
> On Fri, 2014-05-02 at 14:04 +0200, Slavko wrote:
>> 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
>>>>
>>>> #!/bin/sh
>>>> xhost + si:localuser:root
>>>> sudo $@
>>>> xhost - si:localuser:root
>>
>> 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.

This must be a bug.


Reply to: