3 # script to translate keys (user names) into automount rules.
6 [ "$#" = "1" ] || { echo bad args; exit 1; }
8 KEYFILE=.ssh/authorized_keys
9 eval "HOMEDIR=~$1" # the way that ~ substitution works
12 # if this user has a file .ssh/authorized_keys within their real homedir
13 # then return that, otherwise use the corresponding file from the vserver.
15 if [ -r "$HOMEDIR/$KEYFILE" ]; then
17 elif [ -r "/vservers/$1/home/$1/$KEYFILE" ]; then
18 OUT=/vservers/$1/home/$1/.ssh
20 echo $1 not found in /vservers or /home >/tmp/auto.pl_sshd.log