

So I need to find a way to give guest a permission for the $DISPLAY or. DISPLAYlocalhost:0.0 > xclock > Error: Can't open display: localhost:0.0 > gvim /etc/fstab > E233: cannot open display > Press ENTER or type command to continue > kdesudo gvim /etc/fstab > kdesudo: cannot connect to X server > xhost + localhost > xhost: unable to open display 'localhost:0.0' > DISPLAY:0. I suppose that debugging things on guest would generally not help because the command runs with sudo. 26.501 created with OpenSUSE spotify-easyrpm got a lot track not available errors, switching back to spotify-client-1.1.10.546 and error disappeared. add Defaults env_keep += "DISPLAY" in /etc/sudoers (did a mistake here!!!).generate a xauth cookie with xauth add from a xauth list of another user After running for about a week, attempts to open X applications on my work station all result in the same error: ericxmilicent Tue Mar 03 20:44:44 xterm No protocol specified xterm: Xt error: Can't open display: :0.0 Exit 1 All existing, previously started X-apps continue to.Xauthority from anothers /home/user/ to my guest exporting the $DISPLAY variable before or in the test.sh.(zenity:19225): Gtk-WARNING **: cannot open display: :0 Unable to init server: Verbindung ist gescheitert: Verbindungsaufbau abgelehnt Did I miss something Thanks for your help (It was running on my previous machine, with Ubuntu 10 also, so I don't understand where is the problem now). If guest logs in (via greeter) and start a new gnome-terminal in unity to execute sudo /usr/sbin/test.sh it fails with the (hope german is ok) error: No protocol specifiedįailed to connect to Mir: Failed to connect to server socket: Datei oder Verzeichnis nicht gefunden The runs fine if executed with sudo /usr/sbin/test.sh from a member of the sudo-group or if there are no dialogues to show ( means: making text and operations in a terminal window works without problems). Hi there, I get a display error with some gtk applications, such as brave. Guest is not in the sudo group ! (<- guess this is the problem) The Script

I extend the /etc/sudoers file with the following line: guest ALL = NOPASSWD: /usr/sbin/test.sh Under ubuntu 16.04 I want a specific user guest to be able to run one specific script /usr/sbin/test.sh with root privileges (the script make some system settings and mounts for example). I got this problem with a local user which is privileged for a specific script. I know there is a bunch of similar questions around but they are all about a X-Forewarding and SSH sessions.
