On Sat, 2003-07-19 at 20:18, Jan L. Peterson wrote:
> > xhost +localhost 
> 
> I can't recommend this.  Host based authentication in X is passe, and 
> if you use exmh, exmh will happily turn this back off for you when it 
> notices that you've turned it on.
> 
> First, run
>       xauth list
> as your normal user (who is already logged in to an X session)
> 
> Then observe this sequence of commands (I'm running these on ttyv0, the 
> first console terminal... not in X at all, while X is running on ttyv9):
> 
> aurora# echo $DISPLAY
> DISPLAY: Undefined variable.
> 
> aurora# setenv DISPLAY :0.0
> aurora# xdpyinfo
> Xlib: connection to ":0.0" refused by server
> Xlib: No protocol specified
> xdpyinfo:  unable to open display ":0.0".
> 
> aurora# setenv HOME ~jlp
> aurora# xdpyinfo
> name of display:    :0.0
> version number:    11.0
> vendor string:    The XFree86 Project, Inc
> vendor release number:    40300000
> XFree86 version: 4.3.0
> [... deleted ...]
> 
> aurora# setenv HOME ~root
> aurora# xdpyinfo
> Xlib: connection to ":0.0" refused by server
> Xlib: No protocol specified
> xdpyinfo:  unable to open display ":0.0".
> 
> aurora# xauth add aurora.peterson.ath.cx/unix:0  MIT-MAGIC-COOKIE-1  [the hex
> string from xauth list goes here]
> xauth:  creating new authority file /root/.Xauthority
> 
> aurora# xdpyinfo
> name of display:    :0.0
> version number:    11.0
> vendor string:    The XFree86 Project, Inc
> vendor release number:    40300000
> XFree86 version: 4.3.0
> [... deleted ...]
> 
> 
>       -jan-

Thanks.  This worked great!

Casey

Attachment: signature.asc
Description: This is a digitally signed message part

____________________
BYU Unix Users Group 
http://uug.byu.edu/ 
___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list

Reply via email to