root cannot connect to an X server in a terminal
When I su to root in a konsole window and try to run an X app such as xeyes, xclock, kpackage, etc... I get the following error:
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
Error: Can't open display: :0.0
Yet if I'm the user logged in, it will simply run as expected. How do I allow other users that I su into to run programs on the xserver? Is there a way to "permenantly" configure my PC to do that? (i.e. is there a startup script or whatever).