summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2007-12-04 14:06:49 -0800
committerAn-Cheng Huang <ancheng@vyatta.com>2007-12-04 14:06:49 -0800
commitd85b9132e5817f7a10eb93b52c2696711bc5d18d (patch)
treed7eacf2b33d43adf6fef541b35ad2f898a444775 /debian
parent30cc647675e017e7fd602bf841d1eee87346deee (diff)
downloadvyatta-cfg-system-d85b9132e5817f7a10eb93b52c2696711bc5d18d.tar.gz
vyatta-cfg-system-d85b9132e5817f7a10eb93b52c2696711bc5d18d.zip
* change "user group" to "user level".
* "admin" => "users", "quaggavty", "vyattacfg", "sudo". * "users" => "users", "quaggavty" * use "sudo" group for sudo permissions. * don't add "root" to /etc/group.
Diffstat (limited to 'debian')
-rw-r--r--debian/vyatta-cfg-system.postinst.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/debian/vyatta-cfg-system.postinst.in b/debian/vyatta-cfg-system.postinst.in
index 2c9f0fbf..4420ce7c 100644
--- a/debian/vyatta-cfg-system.postinst.in
+++ b/debian/vyatta-cfg-system.postinst.in
@@ -39,8 +39,9 @@ if [ "$sysconfdir" != "/etc" ]; then
# sudoers
[ -f /etc/sudoers ] && cp -pf /etc/sudoers /etc/sudoers.vyatta-save
- if ! grep -q '%quaggavty ALL=NOPASSWD: ALL' /etc/sudoers; then
- echo -e "\n%quaggavty ALL=NOPASSWD: ALL" >> /etc/sudoers
+ sed -i 's/^# %sudo ALL=NOPASSWD: ALL/%sudo ALL=NOPASSWD: ALL/' /etc/sudoers
+ if ! grep -q '^%sudo ALL=NOPASSWD: ALL' /etc/sudoers; then
+ echo -e "\n%sudo ALL=NOPASSWD: ALL" >> /etc/sudoers
fi
echo "Defaults env_keep+=VYATTA_*" >> /etc/sudoers