Click to See Complete Forum and Search --> : Running root programs in user XFree86


bdg1983
05-01-2001, 12:22 AM
OK, im using debian 2.2 with xfree86 3.3.6, and my problem is as follows. sometimes i like to be able to run some root X based programs (like firestarter), after ive su'ed in a gnome terminal. but when i open a terminal, su and then try to run a root program on the curent setup i have i get the following error

"Xlib: connection to ":0.0" refused by server
Xlib: Client is not authorised to connect to server"

Now this is getting a bit annoying and i want to fix it so i can run a root program.
thanks

sans-hubris
05-01-2001, 12:29 AM
You need to add the localhost to the list of IPs that can send X protocol stuff. It isn't default. Sometimes X can be a little too secure, and so it locks out users like root... blah blah blah, sorry:

xhost +localhost

bdg1983
05-01-2001, 06:58 AM
Thanks for the answer....just im not too clear on what to do with it. im assuming i add this info to XF86Config? if so, does it need to go in a particular place in the file or what?

stiles
05-01-2001, 03:36 PM
type it at a term as the user who started the X session. If you don't want to do that every time X is started add that line to your ~.xinit file.