diff options
author | Christian Breunig <christian@breunig.cc> | 2024-07-04 13:40:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-04 13:40:18 +0200 |
commit | ec889a74217d8132874e571934866e08aaf11ba4 (patch) | |
tree | 4cb93a0bfdb2f5a810b2018e69fb73182e8ba251 /src/opt/vyatta/bin/restricted-shell | |
parent | 18f6159536d67c8fdabf02fe1aa8b4e0e94986d8 (diff) | |
parent | 7aa420e5a5509793030350acb9c108eaef6c79ea (diff) | |
download | vyos-1x-ec889a74217d8132874e571934866e08aaf11ba4.tar.gz vyos-1x-ec889a74217d8132874e571934866e08aaf11ba4.zip |
Merge pull request #3766 from vyos/mergify/bp/circinus/pr-3745
T6527: add legacy Vyatta interpreter files still in use (backport #3745)
Diffstat (limited to 'src/opt/vyatta/bin/restricted-shell')
-rwxr-xr-x | src/opt/vyatta/bin/restricted-shell | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/opt/vyatta/bin/restricted-shell b/src/opt/vyatta/bin/restricted-shell new file mode 100755 index 000000000..ffcbb53b7 --- /dev/null +++ b/src/opt/vyatta/bin/restricted-shell @@ -0,0 +1,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 |