Xlib: no protocol specified; Can't open display
i'm trying to run a graphical program,
I use tightvnc to remote into my system as my user account,
if i type 'nedit' then the window pops up and it works fine.
but if i do an 'su' or 'su -' and become root to use nedit, or su to any other account, then for nedit or any other graphical problem i get the following error:
Xlib: connection to "127.0.0.1:4.0" refused by server
Xlib: No protocol specified
NEdit: Can't open display
what causes this and how can i fix it?
I've verified with echo $DISPLAY that before i do an su the contents of DISPLAY are the exact same.
The system this is happening on is running SLES 10.4 and is itanium.
This problem does not happen on my systems that run SLES 11.x which are x86-64. Not sure if it's a security setting that i can change or mistakenly set, or if it's a bug or oversight in SLES 10 that was fixed in SLES 11.
thanks.
|