summaryrefslogtreecommitdiff
path: root/src/opt/vyatta/bin/restricted-shell
blob: ffcbb53b7c30979040a35a25155c50615ae80cf9 (plain)
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