diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-05-13 17:18:26 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-05-13 17:18:26 -0700 |
commit | df8f66b210c463238bfaf9c97af500f941ec6ac7 (patch) | |
tree | 01ce2462fbfd5a104b7a82c7f0d165d70b5e6b19 /debian/vyatta-cfg-system.postinst.in | |
parent | 2e368aaca62ca05330d613500772fe8d6aa11032 (diff) | |
parent | 6c47fa4846c453964709c02891adb4e582e4cf93 (diff) | |
download | vyatta-cfg-quagga-df8f66b210c463238bfaf9c97af500f941ec6ac7.tar.gz vyatta-cfg-quagga-df8f66b210c463238bfaf9c97af500f941ec6ac7.zip |
Merge branch 'hollywood' of suva.vyatta.com:/git/vyatta-cfg-system into hollywood
Diffstat (limited to 'debian/vyatta-cfg-system.postinst.in')
-rw-r--r-- | debian/vyatta-cfg-system.postinst.in | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/debian/vyatta-cfg-system.postinst.in b/debian/vyatta-cfg-system.postinst.in index 54931692..a627c4af 100644 --- a/debian/vyatta-cfg-system.postinst.in +++ b/debian/vyatta-cfg-system.postinst.in @@ -30,7 +30,9 @@ if [ "$sysconfdir" != "/etc" ]; then fi # Allow operator to do a limited number of commands without password - cat <<"EOF" >>/etc/sudoers + if ! grep -q '^%operator ALL=NOPASSWD:' /etc/sudoers; then + cat <<"EOF" >>/etc/sudoers +### BEGIN VYATTA OPERATOR COMMANDS Cmnd_Alias IPTABLES = /sbin/iptables --list -n,\ /sbin/iptables -L -vn,\ /sbin/iptables -L * -vn,\ @@ -46,7 +48,9 @@ Cmnd_Alias DATE = /bin/date, /usr/sbin/ntpdate Cmnd_Alias PPPOE_CMDS = /sbin/pppd, /sbin/poff %operator ALL=NOPASSWD: /sbin/reboot, DATE, IPTABLES, ETHTOOLP, IPFLUSH, \ PPPOE_CMDS, /usr/bin/tshark +### END VYATTA OPERATOR COMMANDS EOF + fi # for "users" level (FIXME) if ! grep -q "^%users ALL=NOPASSWD: ${bindir}/sudo-users/" /etc/sudoers; then |