If I do
xhost +
>access control disabled, clients can connect from any host
su AnotherUser -c xterm
an xterm pops up. However if I do
xhost +SI:localuser:AnotherUser
>localuser:AnotherUser being added to access control list
su AnotherUser -c xterm
I got No protocol specified
, I'd like to understand why it doesn't work.
I am in Debian sid amd64
xhost
after you have added permission for the second user. – X Tian Aug 19 '15 at 18:10xhost
, which was requested by @XTian, as>output
, – user129340 Aug 20 '15 at 07:52su -c xclock
fails before Ixhost +SI:localuser:root
and succeeds afterwards. Can you show us what your$DISPLAY
looks like, and also the output ofxhost
with no arguments? – Toby Speight Aug 21 '15 at 12:27access control enabled, only authorized clients can connect
SI:localuser:root
– user129340 Aug 21 '15 at 15:19xhost
considered harmful,xauth
is more secure. You can maybe use it on a secure network, but don't think that restricting to a particular user will make it more secure. It can only stop accidental connection. – ctrl-alt-delor Feb 02 '19 at 09:37echo $DISPLAY
– ctrl-alt-delor Feb 02 '19 at 09:46