[wplug] X11 and sudo

Moshe Katz-Hyman mokatz at gmail.com
Wed Jan 24 09:00:28 EST 2007


ususally the easiest (if least secure) way of doing this is:

$ xhost +localhost

then anyone on the local machine can throw things up to the X display.

Moshe

On 1/24/07, Brandon Kuczenski <brandon at 301south.net> wrote:
> I want to run a command as another user via sudo,
>
> $ sudo -u joeuser xeyes
>
>   only when I do so the other user doesn't have authority to write to my
> display.  What's the easiest way to get around this?  I had a hunch it was
> something similar to
>
> $ xauth add :0.0 [something] [something]
>
> but I can't make much sense of the xauth man page. Magic cookies? eh?
>
> Thanks in advance,
> Brandon
>
> _______________________________________________
> wplug mailing list
> wplug at wplug.org
> http://www.wplug.org/mailman/listinfo/wplug
>


More information about the wplug mailing list