summaryrefslogtreecommitdiff
path: root/templates/show/system
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-01-04 16:35:23 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-01-04 16:48:57 -0800
commit78be5135b674d8a321b5ff2f9497652831c88157 (patch)
tree649b62e6f55dca5ca8f5d0dd35bd95777173dc17 /templates/show/system
parentfda8e26509b6b4ddf1b0103b6f9af65d306da360 (diff)
downloadvyatta-op-78be5135b674d8a321b5ff2f9497652831c88157.tar.gz
vyatta-op-78be5135b674d8a321b5ff2f9497652831c88157.zip
Don't allow operator to run show system login users
Bug 5147 This is a generic way of solving the sudo problem (for now).
Diffstat (limited to 'templates/show/system')
-rw-r--r--templates/show/system/login/users/locked/node.def2
-rw-r--r--templates/show/system/login/users/node.def2
-rw-r--r--templates/show/system/login/users/other/node.def2
3 files changed, 3 insertions, 3 deletions
diff --git a/templates/show/system/login/users/locked/node.def b/templates/show/system/login/users/locked/node.def
index ebd84a0..354c204 100644
--- a/templates/show/system/login/users/locked/node.def
+++ b/templates/show/system/login/users/locked/node.def
@@ -1,2 +1,2 @@
help: Show information about locked accounts
-run: sudo /opt/vyatta/bin/show-users.pl locked
+run: ${vyatta_bindir}/vyatta-sudo /opt/vyatta/bin/show-users.pl locked
diff --git a/templates/show/system/login/users/node.def b/templates/show/system/login/users/node.def
index 7f3101a..5943122 100644
--- a/templates/show/system/login/users/node.def
+++ b/templates/show/system/login/users/node.def
@@ -1,2 +1,2 @@
help: Show user account information
-run: sudo /opt/vyatta/bin/show-users.pl
+run: ${vyatta_bindir}/vyatta-sudo /opt/vyatta/bin/show-users.pl
diff --git a/templates/show/system/login/users/other/node.def b/templates/show/system/login/users/other/node.def
index 4c99637..77c4683 100644
--- a/templates/show/system/login/users/other/node.def
+++ b/templates/show/system/login/users/other/node.def
@@ -1,2 +1,2 @@
help: Show information about non-Vyatta accounts
-run: sudo /opt/vyatta/bin/show-users.pl other
+run: ${vyatta_bindir}/vyatta-sudo /opt/vyatta/bin/show-users.pl other