diff options
author | rbalocca <rbalocca@vyatta.com> | 2008-05-21 16:06:11 -0700 |
---|---|---|
committer | rbalocca <rbalocca@vyatta.com> | 2008-05-21 16:06:11 -0700 |
commit | eafedd1e4106562073de4d20d567496903a9a443 (patch) | |
tree | 5319c720b6752c1f5d58b97e8ca923f8901ce816 /debian/vyatta-cfg-system.postinst.in | |
parent | 24802bd1a1ec56812001e92ad158bc2f08bb1ee6 (diff) | |
parent | a3aa2f7e17e1cccfc9334a61547e48e156d5453b (diff) | |
download | vyatta-cfg-system-glendale.tar.gz vyatta-cfg-system-glendale.zip |
Merge branch 'glendale'glendale
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 30cbfd5a..17d1264d 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 +### END VYATTA OPERATOR COMMANDS EOF + fi # for "users" level (FIXME) if ! grep -q "^%users ALL=NOPASSWD: ${bindir}/sudo-users/" /etc/sudoers; then |