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
xhostafter 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 xclockfails before Ixhost +SI:localuser:rootand succeeds afterwards. Can you show us what your$DISPLAYlooks like, and also the output ofxhostwith no arguments? – Toby Speight Aug 21 '15 at 12:27access control enabled, only authorized clients can connectSI:localuser:root– user129340 Aug 21 '15 at 15:19xhostconsidered harmful,xauthis 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