Click to See Complete Forum and Search --> : X and su


AdaHacker
12-27-2001, 08:20 PM
This is probably a stupid question, but I'd kinda like to find out why this is.
I remember in the past being able to su to root and start GUI apps, but it doesn't seem to work now. Instead of the app starting, I get the following message:
Xlib: connection to ":0.0" refused by server
Xlib: Client is not authorized to connect to Server
I noticed it shortly after my last reinstall (Slack 8 w/ XF86 4). Could it be that these days I'm booting straight into X (runlevel 4) and using kdm?
What's up with that? Is there a way around it? Any ideas? Anyone?

bdl
12-27-2001, 11:24 PM
You most likely need to add localhost to the list of trusted machines given access to the X server. Try this:

prompt$ xhost +localhost

MkIII_Supra
12-28-2001, 01:01 AM
If you were using SuSE then instead of su you would use sux. Try it in Slack and see WTF transpires....

mychl
12-28-2001, 11:13 AM
Originally posted by bdl:
<STRONG>You most likely need to add localhost to the list of trusted machines given access to the X server. Try this:

prompt$ xhost +localhost</STRONG>

That is correct, however that + should be an = sign.

xhost = localhost

;)

bdl
12-28-2001, 01:10 PM
Originally posted by mychl:
<STRONG>That is correct, however that + should be an = sign.

xhost = localhost

;)</STRONG>

Uhhh, no.

AdaHacker
12-28-2001, 01:13 PM
Thank you all.
I'll give xhost a try when I get home. I thought it was probably something like that, but I couldn't remember the syntax. I tried something like that last night, but I obviously didn't get it right. How I managed to mess it up, I don't know, but I'll try again later.

AdaHacker
12-28-2001, 05:44 PM
Yup. xhost + localhost did it. Problem solved. Thanks!