From c9d801042d0749c921c7c0f3232df796034889e3 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Thu, 28 Feb 2008 12:01:20 -0800 Subject: 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. --- Makefile.am | 12 ++++++------ templates/show/log/all/node.def | 2 +- templates/show/log/file/node.tag/node.def | 2 +- templates/show/log/node.def | 2 +- templates/show/system/boot-messages/all/node.def | 2 +- templates/show/system/boot-messages/node.def | 2 +- 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 -- cgit v1.2.3