diff options
| author | Daniil Baturin <daniil@vyos.io> | 2024-07-02 16:04:17 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-02 16:04:17 +0200 |
| commit | b1d74fe8e21e2a9725eefb517e7da63f8cd952f9 (patch) | |
| tree | 1a77ced47217ee863f87ff224b54c5e00938e5e7 /src/opt/vyatta/bin/restricted-shell | |
| parent | efe4e60f5b5620ad7ea342fc9ca1d069e8b9cc21 (diff) | |
| parent | 72a704d2e2b06bfedc4f1ee841814f983fc34baa (diff) | |
| download | vyos-1x-b1d74fe8e21e2a9725eefb517e7da63f8cd952f9.tar.gz vyos-1x-b1d74fe8e21e2a9725eefb517e7da63f8cd952f9.zip | |
Merge pull request #3745 from c-po/no-legacy
T6527: add legacy Vyatta interpreter files still in use
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 |
