summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-10-27 16:31:06 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2008-10-27 16:31:06 -0700
commitbd5e025253397e80787f2c21ebb95c67fa4e140d (patch)
treec6b0f30fbbc121e300b3e1c2aa671a9e5271ad37
parent3537c028bc63e18568e70dfd3c1634d857918bc2 (diff)
downloadvyatta-cfg-system-bd5e025253397e80787f2c21ebb95c67fa4e140d.tar.gz
vyatta-cfg-system-bd5e025253397e80787f2c21ebb95c67fa4e140d.zip
Allow more ethtool commands
Bugfix 3832 Need to allow ethtool statistics for operator
-rw-r--r--debian/vyatta-cfg-system.postinst.in8
1 files changed, 6 insertions, 2 deletions
diff --git a/debian/vyatta-cfg-system.postinst.in b/debian/vyatta-cfg-system.postinst.in
index e9541dbe..a814df9c 100644
--- a/debian/vyatta-cfg-system.postinst.in
+++ b/debian/vyatta-cfg-system.postinst.in
@@ -55,11 +55,15 @@ Cmnd_Alias IPFLUSH = /sbin/ip route flush cache, \
/sbin/ip route flush cache *,\
/sbin/ip neigh flush to *, \
/sbin/ip neigh flush dev *
-Cmnd_Alias ETHTOOLP = /usr/sbin/ethtool -p *
+Cmnd_Alias ETHTOOL = /usr/sbin/ethtool -p *, \
+ /usr/sbin/ethtool -S *, \
+ /usr/sbin/ethtool -a *, \
+ /usr/sbin/ethtool -c *, \
+ /usr/sbin/ethtool -i *
Cmnd_Alias DATE = /bin/date, /usr/sbin/ntpdate
Cmnd_Alias PPPOE_CMDS = /sbin/pppd, /sbin/poff
Cmnd_Alias PCAPTURE = /usr/bin/tshark, /usr/bin/tcpdump
-%operator ALL=NOPASSWD: DATE, IPTABLES, ETHTOOLP, IPFLUSH, \
+%operator ALL=NOPASSWD: DATE, IPTABLES, ETHTOOL, IPFLUSH, \
PPPOE_CMDS, PCAPTURE, /usr/sbin/wanpipemon, /usr/bin/lsof
EOF
cat <<EOF >>/etc/sudoers