Original von TheOneBeyond
Hi there!
I think this a bit more general question, not special KDE but I think its ok in here, if not.. please let me know, and sorry :-)
When I work in DKE a a normal user and become root in the console using "su" I cannot start any programm using X-Server...
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
is what I get ...
Can someone help me along with that?
Thanks, greetings, Sascha
The permissions to open an X window are independent of the UNIX permissions ("I am root, I can do everything" is not true here.).
- If you're alone on your machine and high security is not a priority you could say: "xhost +localhost" on the command line. This allows access to any user on your local machine.
- Alternatively, if you're running an sshd that allows root logins (again a security question) you could use "ssh -X root@localhost" instead of "su - root". This uses the X11 forwarding feature of ssh.
- There's also the kdesu program: Try "kdesu yourprogramname" on the command line.