hi. sorry to write to this thread again, but my previous response was quite hasty.
i encounter this problem in my laptop which is also where i do my programming. was
able to get around it with the solution i posted previously.
Emmanuel 'Manny' Amador wrote:
> Here's one for you Linux gurus.
>
> I can't seem to run kppp (the KDE dialer). When I run it as an
> ordinary user from my Blackbox menu, nothing happens. I tried running it
> from the console, I got this wierd message:
>
> Xlib: connection to "0.0" refused by server
> Xlib: Client is not authorized to connect to to Server
> kppp: cannot connect to X server :0.0
>
> I know this means that kppp does not have permission to run X
> (right?). This is strange since the program asks for the root
> password. Shouldn't it be able to connect since it has verified that I
> know the root password?
actually, this only means that kppp has no permission to write to the device
described in the environment variable DISPLAY, which is 0.0. the command "xhost +"
gives this permission. note however that this also enables any machine to write to
your X display. security gurus treat this as a big no-no.
>
> The really wierd thing is, when I open another console and run a root
> shell, I can now run the kppp program either from the console (the user
> console with user shell, not the root console) as long as the console with
> a root shell is kept open. I can also launch kppp using the Blackbox menu
> as long as that root shell is kept open. Once I exit that root shell, I
> cannot run kppp anymore even though it prompts me for the root password.
again, this is related to the DISPLAY variable. when one opens a console in linux,
the console program immediately has the DISPLAY variable set by the window manager
which was the parent program that forked it. doing an "su -" in this console forks
off a root process, which also inherited the proper DISPLAY settings. running a
kppp on this console also inherits the proper DISPLAY variable setting.
personally, i don't understand why kppp, as called straight by the window manager,
did not inherit this setting.
>
> Even stranger is that this just started happening yesterday. I used to be
> able to call up kppp all the time. It asked for the root password, but
> that was it. I don't think that I was running a root shell in the past ALL
> the time.
>
> What gives? I didn't change any settings. I just booted up one day and
> found may machine acting this way.
>
regrettably to these, i've no answers. =)
vince.
_______________________________________________
plug mailing list
[EMAIL PROTECTED]
http://www.q-linux.com/mailman/listinfo/plug