Why does sudo xhost throw an error on openSUSE, but su -c xhost does not?
0
votes
1
answer
221
views
Here are some things that work:
xhost
su -c xhost
su -c su logname
-c xhost
Here are some things that do not work:
sudo xhost
sudo su logname
-c xhost
sudo runuser -l logname
-c xhost
sudo -u logname
xhost
Those each threw the following error: access control enabled, only authorized clients can connect
Does anyone have any idea why this is happening, or how I can use the xhost
command in a script that my users will most likely be running with sudo
?
Asked by Johnathan Andersen
(101 rep)
May 9, 2019, 06:01 PM
Last activity: May 9, 2019, 07:49 PM
Last activity: May 9, 2019, 07:49 PM