Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- case "$SSH_ORIGINAL_COMMAND" in
- /home/nagios/libexec/check_*)
- $SSH_ORIGINAL_COMMAND
- code=$?
- ;;
- sudo*)
- $SSH_ORIGINAL_COMMAND
- code=$?
- ;;
- *)
- echo "Sorry, you may not execute $SSH_ORIGINAL_COMMAND"
- exit 1
- ;;
- esac
- exit $code
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement