LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Firefox Xlib error (https://www.linuxquestions.org/questions/linux-software-2/firefox-xlib-error-411942/)

bsmntbombdood 02-05-2006 02:15 PM

Firefox Xlib error
 
I just made a new user to run firefox from, so if there is a firefox exploit only that user will be affected. I cd to the home directory of the user ("firefox") and run "./firefox". Then I get this error--
Code:

Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified


(firefox-bin:5834): Gtk-WARNING **: cannot open display:

Running firefox from any user works fine. Whats wrong and how can I fix it?

thanks

acidzebra 02-06-2006 06:59 AM

well in a nutshell, you are running your X-windows server as a certain user (whoever you log in as by default). Another user will not have rights to 'connect' to this x server and run programs on it.

A brutal fix would be to type
xhost +
but this will open your server to the world.

try running
man xhost
and it will inform you of all the ways to allow other users to connect to your x server.


All times are GMT -5. The time now is 03:27 AM.