#!/bin/sh # # $Header: provisionShareOldKeys.sh 07-feb-2006.23:26:21 adeb Exp $ # # provisionShareOldKeys.sh # # Copyright (c) 2006, Oracle. All rights reserved. # # NAME # provisionShareOldKeys.sh - # # DESCRIPTION # # # NOTES # # # MODIFIED (MM/DD/YY) # adeb 01/29/06 - ssh changes # adeb 01/29/06 - Creation # usernm=$2 userhome=`awk -v usr="$usernm" -F: '$1 ==usr {print $6}' /etc/passwd`; cat $userhome/.ssh/authorized_keys >> $1/userkeys.old; cat $userhome/.ssh/known_hosts >> $1/hostkeys.old;