If I su to root in a terminal, and try to edit a file using emacs, I get the following error:
Xlib: connection to "X0.0" refused by server Xlib: client is not authorized to connect to server emacs: cannot connect to Xserver :0. Check the DISPLAY environment variable or use '-d'
It's OK is I log in as root, or as a user, it only has the problem when I su. (This error occurs with any program that uses X). Obviously this is a real pain as I am having to log in as root... which is less than desirable! Any ideas?
Ricardo