summaryrefslogtreecommitdiff
path: root/templates/show/configuration/node.def
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@vyatta.com>2010-06-11 11:06:30 -0700
committerStig Thormodsrud <stig@vyatta.com>2010-06-11 11:06:30 -0700
commitd4fe2b1e313f1733a233c9774fd9193a200661e2 (patch)
tree184202494dbcb5a0f9a97d960d55cc3454eaf803 /templates/show/configuration/node.def
parent7761d8913a30141699b555efa3aac30aa3a41594 (diff)
downloadvyatta-op-d4fe2b1e313f1733a233c9774fd9193a200661e2.tar.gz
vyatta-op-d4fe2b1e313f1733a233c9774fd9193a200661e2.zip
Block operator user from running "show configuration *"
Diffstat (limited to 'templates/show/configuration/node.def')
-rw-r--r--templates/show/configuration/node.def7
1 files changed, 6 insertions, 1 deletions
diff --git a/templates/show/configuration/node.def b/templates/show/configuration/node.def
index d3a36e0..3c2c7e7 100644
--- a/templates/show/configuration/node.def
+++ b/templates/show/configuration/node.def
@@ -1,2 +1,7 @@
help: Show running configuration
-run: ${vyatta_sbindir}/vyatta-output-config.pl -active
+run: if [ "$VYATTA_USER_LEVEL_DIR" == "/opt/vyatta/etc/shell/level/admin" ];
+ then
+ ${vyatta_sbindir}/vyatta-output-config.pl -active
+ else
+ echo Must be an admin user to run this command.
+ fi