From 3e10b84a227f60d17c661d30a28bbac3dd74871d Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Mon, 3 Mar 2008 14:59:18 -0800 Subject: don't use sudo-users for ip commands Use explicit path when running ip commands to flush cache etc, since now this is allowed for operator by /etc/sudoers. --- templates/clear/arp/address/node.tag/node.def | 2 +- templates/clear/arp/interface/node.tag/node.def | 2 +- templates/clear/ip/route/cache/node.def | 2 +- templates/clear/ip/route/cache/node.tag/node.def | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/clear/arp/address/node.tag/node.def b/templates/clear/arp/address/node.tag/node.def index 3813b29..23fc5bc 100644 --- a/templates/clear/arp/address/node.tag/node.def +++ b/templates/clear/arp/address/node.tag/node.def @@ -1,3 +1,3 @@ help: Clear ARP cache for address allowed: echo -n '' -run: sudo ${vyatta_bindir}/sudo-users/ip neigh flush to "$4" +run: sudo /sbin/ip neigh flush to "$4" diff --git a/templates/clear/arp/interface/node.tag/node.def b/templates/clear/arp/interface/node.tag/node.def index ca17543..35e83a9 100644 --- a/templates/clear/arp/interface/node.tag/node.def +++ b/templates/clear/arp/interface/node.tag/node.def @@ -2,4 +2,4 @@ help: Clear ARP cache for interface allowed: local -a array ; array=( /sys/class/net/{eth,vmnet}* ) ; echo -n ${array[@]##*/} -run: sudo ${vyatta_bindir}/sudo-users/ip neigh flush dev "$4" +run: sudo /sbin/ip neigh flush dev "$4" diff --git a/templates/clear/ip/route/cache/node.def b/templates/clear/ip/route/cache/node.def index 9648cef..b97e0c9 100644 --- a/templates/clear/ip/route/cache/node.def +++ b/templates/clear/ip/route/cache/node.def @@ -1,2 +1,2 @@ help: Flush the kernel route cache -run: sudo ${vyatta_bindir}/sudo-users/ip route flush cache +run: sudo /sbin/ip route flush cache diff --git a/templates/clear/ip/route/cache/node.tag/node.def b/templates/clear/ip/route/cache/node.tag/node.def index 403e1f9..97f7fc3 100644 --- a/templates/clear/ip/route/cache/node.tag/node.def +++ b/templates/clear/ip/route/cache/node.tag/node.def @@ -1,3 +1,3 @@ help: Flush the kernel route cache for a given route allowed: echo -n '' -run: sudo ${vyatta_bindir}/sudo-users/ip route flush cache "$5" +run: sudo /sbin/ip route flush cache "$5" -- cgit v1.2.3