srakaarchitect.blogg.se

Gedit no protocol specified
Gedit no protocol specified














If the program works after that, we know its a security issue.

gedit no protocol specified

This will reduce some security built in to the X Window system and allow any process to write to the display. The system should respond with: "access control disabled, clients can connect from any host" Please try typing "sudo xhost +" from the command line. Well I was logged on to a gnome session, and had a terminal open(Pseudo).Īlso I don't think there's a problem with the env variables, Ill check the path when the problem happens againīut right now(everything is working this ~ $ echo $XAUTHORITY your path is probably the problem, i could replicate the problem in 2 seconds 1st try.) (i dont know the exact syntax to 'report' to merge threads so ill let it be, and link the answer. Have you started X-Windows (aka KDE, gnome) etc? Do you just have a command prompt, or are you entering these commands from a text window running inside a desktop? It sounds like you are trying to run a GUI program from the command line. The error is the same on a regular user and root

gedit no protocol specified

#Gedit no protocol specified full#

Run 'eog -help' to see a full list of available command line ~ $ gedit Several applications refuse to run and I get this error: Posted: Fri 8:39 pm Post subject: No protocol specified Cannot open display error Gentoo Forums Forum Index Desktop Environments No protocol specified Cannot open display error Xauthority of sudo just for this single command.Gentoo Forums :: View topic - No protocol specified Cannot open display error So I need to find a way to give guest a permission for the $DISPLAY or. I suppose that debugging things on guest would generally not help because the command runs with sudo. 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.Xauthority from anothers /home/user/ to my guest exporting the $DISPLAY variable before or in the test.sh.

gedit no protocol specified

(zenity:19225): Gtk-WARNING **: cannot open display: :0 Unable to init server: Verbindung ist gescheitert: Verbindungsaufbau abgelehnt 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). 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.














Gedit no protocol specified