Ethical Hacking Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package. | Computer Forensics Training at InfoSec Institute Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors. |

| Subject: | Re: .Xauthority corruption |
|---|---|
| Date: | Fri, 10 Jun 2005 11:52:01 -0700 |
Very simple. "xauth" (sshd calls xauth to edit .Xauthority) does not do any file locking or atomic capable operations. NFS does not support locking (atleast NFS3, I have not really read up on NFS4.) You would have to do something like: 1) move xauth to xauth.bin 2) create a shell script called xauth that contains: ################################################ #! /bin/sh XAUTHCMD="/usr/bin/xauth.bin" LOCK="$HOME/.Xauthority.lock" mkdir $LOCK > /dev/null 2>/dev/null while [ "$?" -ne "0" ]; do sleep 1 mkdir $LOCK > /dev/null 2> /dev/null done $XAUTHCMD $* RETVAL=$? rmdir $LOCK exit $RETVAL ################################################ On 6/9/05, Irfan or Sarah Elahi <elahi@rocketmail.com> wrote:
I just upgraded from SLES8 to SLES9 and have started getting this hard to recreate problem. We have a 64-node cluster with a shared NFS as $HOME. Sometimes when a user "ssh -X" to two or more nodes in quick succession the .Xauthority file ends up corrupted and the users first session works fine while X11forwarding for the second and third sessions do not work. This cannot be recreated easily but more than 5 users have complained about it in the last one week alone and the only solution was to ask the users to remove their .Xauthority file and try again. Any one has any clues why this is happening. I have the same sshd_config on another cluster running SLES8 and the same problem has not occurred there even once. Thanks in advance. Irfan ___________________________________________________________ How much free photo storage do you get? Store your holiday snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com
--
END OF LINE
-MCP
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | SSH_ORIGINAL_COMMAND environment variable not set, Anne Ramey |
|---|---|
| Next by Date: | Re: SSH.com client / OpenSSH server / RSA key auth, Marcelo de Souza |
| Previous by Thread: | .Xauthority corruption, Irfan or Sarah Elahi |
| Next by Thread: | SSH_ORIGINAL_COMMAND environment variable not set, Anne Ramey |
| Indexes: | [Date] [Thread] [Top] [All Lists] |