From c07bfa52d381abfa0177dc5940e142bc4252b7b8 Mon Sep 17 00:00:00 2001 From: An-Cheng Huang Date: Tue, 23 Oct 2007 10:17:57 -0700 Subject: * add non-root users to 'quaggavty' group. * set up sudo for 'quaggavty' group. --- debian/control | 2 +- debian/vyatta-cfg-system.postinst.in | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'debian') 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 -- cgit v1.2.3