Exporting X permissions when su'ing to another user...

Ben Kahn xkahn at zoned.net
Sat Dec 3 03:55:15 GMT 2005

> You need to grant joe temporary access to your X server:
>    xhost +local:joe at localhost
>    sudo -u joe xclock
>    xhost -local:joe at localhost

So this solution is a tad obscure and is still different from the way
other Linux distributions work.  It's also a lot more work with a
somewhat strange syntax, and has similar (although slightly different)
security problems that my solution has.

Why is this better?

Benjamin Kahn
xkahn at zoned.net
617 792 6271

More information about the ubuntu-devel mailing list