1 2 3 4 5 6 7 8 9 10 11
#!/bin/bash if [ $# != 0 ]; then echo "Remote command execution is not allowed for operator level users" args=($@) args_str=$(IFS=" " ; echo "${args[*]}") logger "Operator level user $USER attempted remote command execution: $args_str" exit 1 fi exec vbash