summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-06-26 22:10:59 +0200
committerChristian Poessinger <christian@poessinger.com>2021-06-26 22:10:59 +0200
commit120b866bf28fb8f6a82404a1254f8e3ad491e0ac (patch)
tree81f82ef61d8e2cfbc1ba60f4b93584555482a98b /debian
parent2124089f7d8388d99e14d0337bf6ce35f9f21f15 (diff)
downloadvyos-1x-120b866bf28fb8f6a82404a1254f8e3ad491e0ac.tar.gz
vyos-1x-120b866bf28fb8f6a82404a1254f8e3ad491e0ac.zip
Import sudoers configuration from vyatta-cfg-system
Diffstat (limited to 'debian')
-rw-r--r--debian/vyos-1x.install1
-rw-r--r--debian/vyos-1x.postinst3
2 files changed, 4 insertions, 0 deletions
diff --git a/debian/vyos-1x.install b/debian/vyos-1x.install
index 32a2c4b7c..07827650b 100644
--- a/debian/vyos-1x.install
+++ b/debian/vyos-1x.install
@@ -4,6 +4,7 @@ etc/ipsec.d
etc/netplug
etc/opennhrp
etc/rsyslog.d
+etc/sudoers.d
etc/systemd
etc/sysctl.d
etc/udev
diff --git a/debian/vyos-1x.postinst b/debian/vyos-1x.postinst
index 136d025d4..2401f730a 100644
--- a/debian/vyos-1x.postinst
+++ b/debian/vyos-1x.postinst
@@ -9,6 +9,9 @@ if [ -x "/etc/init.d/salt-minion" ]; then
update-rc.d -f salt-minion remove >/dev/null
fi
+# Turn off Debian default for %sudo
+sed -i -e '/^%sudo/d' /etc/sudoers || true
+
# Add minion user for salt-minion
if ! grep -q '^minion' /etc/passwd; then
adduser --quiet --firstuid 100 --system --disabled-login --ingroup vyattacfg \