From 30d8f0c649a9ee7a6e533e71b1bcb114df4576ed Mon Sep 17 00:00:00 2001 From: An-Cheng Huang Date: Thu, 28 Feb 2008 13:27:16 -0800 Subject: show commands don't need sudo --- Makefile.am | 4 +--- templates/show/interfaces/ethernet/node.tag/identify/node.def | 2 +- templates/show/interfaces/ethernet/node.tag/physical/node.def | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Makefile.am b/Makefile.am index 2333bb9..314a24d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -3,7 +3,6 @@ default_DATA = etc/default/vyatta completiondir = /etc/bash_completion.d completion_DATA = etc/bash_completion.d/10vyatta-op opdir = $(datadir)/vyatta-op/templates -bin_sudo_usersdir = $(bindir)/sudo-users funcdir = $(datadir)/vyatta-op/functions func_DATA = functions/tech-support @@ -21,8 +20,7 @@ bin_SCRIPTS += scripts/vyatta-show-log-file bin_SCRIPTS += scripts/vyatta-show-dmesg bin_SCRIPTS += scripts/vyatta-show-dmesg-all bin_SCRIPTS += scripts/vyatta-show-dmi - -bin_sudo_users_SCRIPTS = scripts/vyatta-identify-interface.pl +bin_SCRIPTS += scripts/vyatta-identify-interface.pl cpiop = find . ! -regex '\(.*~\|.*\.bak\|.*\.swp\|.*\#.*\#\)' -print0 | \ cpio -0pd diff --git a/templates/show/interfaces/ethernet/node.tag/identify/node.def b/templates/show/interfaces/ethernet/node.tag/identify/node.def index d94172f..3bbd413 100644 --- a/templates/show/interfaces/ethernet/node.tag/identify/node.def +++ b/templates/show/interfaces/ethernet/node.tag/identify/node.def @@ -1,2 +1,2 @@ help: Visually identify the specified Ethernet interface -run: sudo ${vyatta_bindir}/sudo-users/vyatta-identify-interface.pl "$4" +run: ${vyatta_bindir}/vyatta-identify-interface.pl "$4" diff --git a/templates/show/interfaces/ethernet/node.tag/physical/node.def b/templates/show/interfaces/ethernet/node.tag/physical/node.def index 389378b..3667c13 100644 --- a/templates/show/interfaces/ethernet/node.tag/physical/node.def +++ b/templates/show/interfaces/ethernet/node.tag/physical/node.def @@ -1,3 +1,3 @@ help: Show physical device information of given ethernet interface allowed: "" -run: sudo ${vyatta_bindir}/sudo-users/ethtool "$4"; sudo ${vyatta_bindir}/sudo-users/ethtool -i "$4" +run: /usr/sbin/ethtool "$4"; /usr/sbin/ethtool -i "$4" -- cgit v1.2.3