summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-02-28 12:01:20 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2008-02-28 12:01:20 -0800
commitc9d801042d0749c921c7c0f3232df796034889e3 (patch)
treeb7f5b8ab09cc465f95ea77a9edbc4ae219a95e17
parent7527117842918d1288636b76bd77663e05664575 (diff)
downloadvyatta-op-c9d801042d0749c921c7c0f3232df796034889e3.tar.gz
vyatta-op-c9d801042d0749c921c7c0f3232df796034889e3.zip
no need for sudo to read log messages
Since operator is now in the adm group, he/she has the ability to read log messages without need of sudo.
-rw-r--r--Makefile.am12
-rw-r--r--templates/show/log/all/node.def2
-rw-r--r--templates/show/log/file/node.tag/node.def2
-rw-r--r--templates/show/log/node.def2
-rw-r--r--templates/show/system/boot-messages/all/node.def2
-rw-r--r--templates/show/system/boot-messages/node.def2
6 files changed, 11 insertions, 11 deletions
diff --git a/Makefile.am b/Makefile.am
index d360084..78096a6 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -15,13 +15,13 @@ bin_SCRIPTS = scripts/vyatta-show-interfaces
bin_SCRIPTS += scripts/vyatta-show-interfaces.pl
bin_SCRIPTS += scripts/vyatta-show-version
bin_SCRIPTS += scripts/vyatta-show-dhclient.pl
+bin_SCRIPTS += scripts/vyatta-show-log
+bin_SCRIPTS += scripts/vyatta-show-log-all
+bin_SCRIPTS += scripts/vyatta-show-log-file
+bin_SCRIPTS += scripts/vyatta-show-dmesg
+bin_SCRIPTS += scripts/vyatta-show-dmesg-all
-bin_sudo_users_SCRIPTS = scripts/vyatta-show-log
-bin_sudo_users_SCRIPTS += scripts/vyatta-show-log-all
-bin_sudo_users_SCRIPTS += scripts/vyatta-show-log-file
-bin_sudo_users_SCRIPTS += scripts/vyatta-show-dmesg
-bin_sudo_users_SCRIPTS += scripts/vyatta-show-dmesg-all
-bin_sudo_users_SCRIPTS += scripts/vyatta-identify-interface.pl
+bin_sudo_users_SCRIPTS = scripts/vyatta-identify-interface.pl
cpiop = find . ! -regex '\(.*~\|.*\.bak\|.*\.swp\|.*\#.*\#\)' -print0 | \
cpio -0pd
diff --git a/templates/show/log/all/node.def b/templates/show/log/all/node.def
index 26f97a3..87e959b 100644
--- a/templates/show/log/all/node.def
+++ b/templates/show/log/all/node.def
@@ -1,2 +1,2 @@
help: Show contents of all master log files
-run: sudo ${vyatta_bindir}/sudo-users/vyatta-show-log-all
+run: ${vyatta_bindir}/vyatta-show-log-all
diff --git a/templates/show/log/file/node.tag/node.def b/templates/show/log/file/node.tag/node.def
index 317582a..a5a1c9d 100644
--- a/templates/show/log/file/node.tag/node.def
+++ b/templates/show/log/file/node.tag/node.def
@@ -2,4 +2,4 @@ help: Show contents of user-defined log file
allowed: local -a array ;
array=( /var/log/user/* ) ;
echo -n ${array[@]##*/}
-run: sudo ${vyatta_bindir}/sudo-users/vyatta-show-log-file "$4"
+run: ${vyatta_bindir}/vyatta-show-log-file "$4"
diff --git a/templates/show/log/node.def b/templates/show/log/node.def
index 2362962..5f61e1d 100644
--- a/templates/show/log/node.def
+++ b/templates/show/log/node.def
@@ -1,2 +1,2 @@
help: Show contents of current master log file
-run: sudo ${vyatta_bindir}/sudo-users/vyatta-show-log
+run: ${vyatta_bindir}/vyatta-show-log
diff --git a/templates/show/system/boot-messages/all/node.def b/templates/show/system/boot-messages/all/node.def
index df6795f..b151fc2 100644
--- a/templates/show/system/boot-messages/all/node.def
+++ b/templates/show/system/boot-messages/all/node.def
@@ -1,2 +1,2 @@
help: Show all kernel boot messages
-run: sudo ${vyatta_bindir}/sudo-users/vyatta-show-dmesg-all
+run: ${vyatta_bindir}/vyatta-show-dmesg-all
diff --git a/templates/show/system/boot-messages/node.def b/templates/show/system/boot-messages/node.def
index b2c25e3..7cfe5d3 100644
--- a/templates/show/system/boot-messages/node.def
+++ b/templates/show/system/boot-messages/node.def
@@ -1,2 +1,2 @@
help: Show most recent kernel boot messages
-run: sudo ${vyatta_bindir}/sudo-users/vyatta-show-dmesg
+run: ${vyatta_bindir}/vyatta-show-dmesg