ldm xauth question for Scott

Warren Togami <[email protected]>
Newsgroups gmane.linux.terminal-server.devel
Message-ID <[email protected]>
http://pastebot.ltsp.org/474?hl=on&store=on&submit=Format+it%21


if [ -f /etc/lts.conf ]; then
     eval $(getltscfg -a) || true
fi

if [ -n "$LDM_DIRECTX" ]; then
     PROTOCOL=$(xauth list | awk '{print $2}')
     KEY=$(xauth list | awk '{print $3}')

     echo $DISPLAY $LDMINFO_IPADDR $PROTOCOL $KEY >> /tmp/foople
     ssh -S ${LDM_SOCKET} ${LDM_SERVER} \
         "xauth remove ${LDMINFO_IPADDR}${DISPLAY}" >> /tmp/foople
     ssh -S ${LDM_SOCKET} ${LDM_SERVER} \
         "xauth add ${LDMINFO_IPADDR}${DISPLAY} ${PROTOCOL} ${KEY}" >> 
/tmp/foople
fi

Why xauth remove before xauth add?

Warren Togami
[email protected]

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_____________________________________________________________________
Ltsp-developer mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-developer
For additional LTSP help,   try #ltsp channel on irc.freenode.net
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.