summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@sydney.vyatta.com>2007-10-23 10:17:57 -0700
committerAn-Cheng Huang <ancheng@sydney.vyatta.com>2007-10-23 10:17:57 -0700
commitc07bfa52d381abfa0177dc5940e142bc4252b7b8 (patch)
tree990452e72abe6199ae9766f0815ab797c83593f9 /debian
parentcb287eb4589e46b72001d8e84de1eb5bae26d543 (diff)
downloadvyatta-cfg-system-c07bfa52d381abfa0177dc5940e142bc4252b7b8.tar.gz
vyatta-cfg-system-c07bfa52d381abfa0177dc5940e142bc4252b7b8.zip
* add non-root users to 'quaggavty' group.
* set up sudo for 'quaggavty' group.
Diffstat (limited to 'debian')
-rw-r--r--debian/control2
-rw-r--r--debian/vyatta-cfg-system.postinst.in4
2 files changed, 5 insertions, 1 deletions
diff --git a/debian/control b/debian/control
index c3bd1482..bc1f5ab0 100644
--- a/debian/control
+++ b/debian/control
@@ -12,7 +12,7 @@ Depends: bash (>= 3.1),
perl (>= 5.8.8),
procps (>= 1:3.2.7-3),
coreutils (>= 5.97-5.3),
- vyatta-cfg, sysv-rc, ifrename, ntp, sysklogd, busybox, ssh, whois
+ vyatta-cfg, sysv-rc, ifrename, ntp, sysklogd, busybox, ssh, whois, sudo
Suggests: util-linux (>= 2.13-5),
net-tools,
ethtool,
diff --git a/debian/vyatta-cfg-system.postinst.in b/debian/vyatta-cfg-system.postinst.in
index a84d41bd..7c561358 100644
--- a/debian/vyatta-cfg-system.postinst.in
+++ b/debian/vyatta-cfg-system.postinst.in
@@ -32,6 +32,10 @@ if [ "$sysconfdir" != "/etc" ]; then
done
cp $sysconfdir/logrotate_messages /etc/logrotate.d/messages
cp $sysconfdir/default_ssh /etc/default/ssh
+
+ # sudoers
+ cp -p /etc/sudoers /etc/sudoers.vyatta-save
+ echo -e "\n%quaggavty ALL=NOPASSWD: ALL" >> /etc/sudoers
fi
# update crontab for logrotate