diff options
author | Stig Thormodsrud <stig@vyatta.com> | 2010-06-11 11:06:30 -0700 |
---|---|---|
committer | Stig Thormodsrud <stig@vyatta.com> | 2010-06-11 11:06:30 -0700 |
commit | d4fe2b1e313f1733a233c9774fd9193a200661e2 (patch) | |
tree | 184202494dbcb5a0f9a97d960d55cc3454eaf803 /templates/show/configuration/all | |
parent | 7761d8913a30141699b555efa3aac30aa3a41594 (diff) | |
download | vyatta-op-d4fe2b1e313f1733a233c9774fd9193a200661e2.tar.gz vyatta-op-d4fe2b1e313f1733a233c9774fd9193a200661e2.zip |
Block operator user from running "show configuration *"
Diffstat (limited to 'templates/show/configuration/all')
-rw-r--r-- | templates/show/configuration/all/node.def | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/templates/show/configuration/all/node.def b/templates/show/configuration/all/node.def index 12431ce..77c3e04 100644 --- a/templates/show/configuration/all/node.def +++ b/templates/show/configuration/all/node.def @@ -1,2 +1,7 @@ help: Show running configuration (including default values) -run: ${vyatta_sbindir}/vyatta-output-config.pl -all -active +run: if [ "$VYATTA_USER_LEVEL_DIR" == "/opt/vyatta/etc/shell/level/admin" ]; + then + ${vyatta_sbindir}/vyatta-output-config.pl -all -active + else + echo Must be an admin user to run this command. + fi |