diff options
author | 2005-09-21 21:15:48 +0000 | |
---|---|---|
committer | 2005-09-21 21:15:48 +0000 | |
commit | 68043ddd53a9f8dc3a4e28e69e06c81a0764fbe4 (patch) | |
tree | 2809f0c32bdeab6b81d57db6d39cb874d78087c3 | |
parent | Added ssh_wrapper script to my scripts. Bumped to version 1.2.3 (diff) | |
download | misc-68043ddd53a9f8dc3a4e28e69e06c81a0764fbe4.tar.gz misc-68043ddd53a9f8dc3a4e28e69e06c81a0764fbe4.tar.bz2 misc-68043ddd53a9f8dc3a4e28e69e06c81a0764fbe4.zip |
Fixed ssh_wrapper
svn path=/local/; revision=429
-rwxr-xr-x | z-distfiles/scripts-gw/ssh_wrapper | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/z-distfiles/scripts-gw/ssh_wrapper b/z-distfiles/scripts-gw/ssh_wrapper index 0d9a7b4..9055050 100755 --- a/z-distfiles/scripts-gw/ssh_wrapper +++ b/z-distfiles/scripts-gw/ssh_wrapper @@ -13,7 +13,6 @@ check_run () { exec $SSH_ORIGINAL_COMMAND return 0 fi - echo "Command REJECTED!" >> $LOGFILE return 1 } @@ -23,7 +22,8 @@ echo "Remote command: ${SSH_ORIGINAL_COMMAND}" >> $LOGFILE if [ -d "${HOME}/.ssh_wrap" ]; then for allowed in ${HOME}/.ssh_wrap/* do - check_run `head -n 1 "${allowed}"` + command=`head -n 1 "${allowed}"` + check_run "${command}" done else echo "No commands allowed!" >> $LOGFILE |