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.postinst | 3 +++ 1 file changed, 3 insertions(+) (limited to 'debian/vyos-1x.postinst') 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