i did a quick look through of the list archives and didn't see any mention of this, so i figured i'd send it in. i have some users that are using tcsh, and they have been running into problems where when they run csh or tcsh shell scripts. when they try to run a shell script, the system tries (and fails) to regenerate all their ssh keys in their CWD (the only time this doesn't happen is if they run in their home directory). i traced the problem to the ssh-oscar.csh script, which apparently has a problem on the line that starts "set home=`echo $home ..`" where it was zeroing out the value of $home in this context, and home was being set to CWD. i tested this type of resetting of a variable to a parsed version of itself in tcsh/csh outside of this script, and got the same results. i have only verified this on CentOS systems (i have checked both 5.1 and 5.2) with OSCAR 5.1b2. anyway, the simple fix for this turned out to be:
--- ssh-oscar.csh.orig 2008-01-06 15:47:37.000000000 -0500 +++ ssh-oscar.csh 2009-04-06 09:20:29.000000000 -0400 @@ -1,11 +1,11 @@ #!/bin/csh set user=`whoami` -set home=`getent passwd $user` +set home1=`getent passwd $user` if ( "$?" != "0" ) then - set home=`getent passwd | egrep "^$user\:"` + set home1=`getent passwd | egrep "^$user\:"` endif -set home=`echo $home | awk -F: '{print $6}' | tail -1` +set home=`echo $home1 | awk -F: '{print $6}' | tail -1` if ( "$user" == "nobody" ) then echo Not creating SSH keys for user $user else if ( -d "$home" ) then figured i'd send it along in case anyone else was having similar problems. --Joe
------------------------------------------------------------------------------
_______________________________________________ Oscar-users mailing list Oscar-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/oscar-users