-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Fri, 9 May 2003, Michael Satterwhite wrote:
This one has to be simple, but I can't find a reason.
I open a Konsole, run emacs, everything is fine. I enter su and the password, try to run emacs and get the following:
Xlib: connection to ":0.0" refused by server Xlib: No protocol specified
When I tried to run the mozilla 1.3.1 installer as su, I get the same error. It looks to this relative newbie that there is something configured that su doesn't have, but what's the missing piece?
By default, nobody (including root) may connect to your X server. Several
suggestions have already been provided (e.g. using "ssh -X
root@localhost"). DON'T use "xhost +" - this will allow anybody to connect
to your X session.
I simply use "sudo" for this purpose. Setting it up is a piece of cake.
Install the "sudo" package and add the following to /etc/suoers to allow
your user account to run commands as root:
<yourlogin> ALL=(ALL) NOPASSWD:ALL
Now simply run "sudo <command>" to execute it as root, including X apps.
Bye,
LenZ
- --
- ------------------------------------------------------------------
Lenz Grimmer