1
0
mirror of https://github.com/deajan/obackup.git synced 2024-12-04 20:53:41 +01:00

Update ssh filter logging.

This commit is contained in:
deajan 2013-06-23 23:11:35 +02:00
parent 9e4c2ebb21
commit d19cc92e74

View File

@ -14,7 +14,7 @@ CMD1=
CMD2=
CMD3=
LOG_FILE=/var/log/obackup_ssh_filter.log
LOG_FILE=~/.ssh/obackup_ssh_filter.log
function Log
{
@ -68,15 +68,12 @@ case ${SSH_ORIGINAL_COMMAND%% *} in
then
Go
else
Log "Sudo command not allowed."
Log "$SSH_ORIGINAL_COMMAND" 1
Log "Command [$SSH_ORIGINAL_COMMAND] not allowed."
fi
else
Log "Sudo command not enabled."
Log "$SSH_ORIGINAL_COMMAND" 1
Log "Command [$SSH_ORIGINAL_COMMAND] not allowed. sudo not enabled."
fi
;;
*)
Log "Not allowed."
Log "$SSH_ORIGINAL_COMMAND" 1
Log "Command [$SSH_ORIGINAL_COMMAND] not allowed."
esac