> > I'm using xdm, which starts on boot, on my Debian system. If I login as rob > and then su, I can't > get any X apps to work. They all fail with the following error: > > Xlib: connection to ":0.0" refused by server > Xlib: Client is not authorized to connect to Server >
What I do is: (1) in my regular user window, use "xhost + <my_host_name>" (though I saw people not recommending this) (2) in the window I su to other user, set the environment variable DISPLAY: (i) setenv DISPLAY <my_host_name>:0.0 (for tcsh) (ii) DISPLAY=<my_host_name>:0.0 (for bash) export DISPLAY Then from that window I can open X applications. I don't know of other better way of doing this.... % MARCIA TAKAGUI E-MAIL: [EMAIL PROTECTED] % Univ Sao Paulo - Fisica - DFGE PHONE: (55) (11) 818-6811 % PO Box 66318, Sao Paulo, SP FAX: (55) (11) 813-4334 % 05315-970 BRAZIL <== new zip code since Oct 22 96