I've been seeing this phenomenon for a while now, but can't figure out
what setting I need to tweak to make it not be a problem.
We're using autofs/NFS for our home directories on CentOS (RHEL) 5.1.
If I SSH into my home directory (using SSH keys), INITIALLY the key-
use will fail and it will fall back to my password. But then that
attempt to read my keyfile has triggered the NFS mount, and any
subsequent attempts will succeed.
Likewise if we try to run shell scripts that are in /mnt/scripts/
foo.sh... the first time we issue the command we'll get a file not
found, and then if we simply hit up-arrow and do it again, it works
fine.
It's especially problematic in scripts. I've taken to doing stupid
crap like:
ls /mnt/scripts 2>/dev/null 1>/dev/null ; /mnt/scripts/scriptName.sh
arg1 arg2
Just to force the autofs to "fail" on my ls and then have it around
for the script that has to get called.
Is there some setting somewhere I need to tweak? Has anyone seen this
before?
cheers,
D
_______________________________________________
Mid-Hudson Valley Linux Users Group http://mhvlug.org
http://mhvlug.org/cgi-bin/mailman/listinfo/mhvlug
Upcoming Meetings (6pm - 8pm) MHVLS Auditorium
Jun 4 - Sqeak! and eToys
Jul 2 - KVM (Tenative)
Aug 6 - Zenos
Sep 3 - TBD