From 120b866bf28fb8f6a82404a1254f8e3ad491e0ac Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sat, 26 Jun 2021 22:10:59 +0200 Subject: Import sudoers configuration from vyatta-cfg-system --- debian/vyos-1x.install | 1 + debian/vyos-1x.postinst | 3 +++ 2 files changed, 4 insertions(+) (limited to 'debian') 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 \ -- cgit v1.2.3