diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-06-26 22:10:59 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-06-26 22:10:59 +0200 |
commit | 120b866bf28fb8f6a82404a1254f8e3ad491e0ac (patch) | |
tree | 81f82ef61d8e2cfbc1ba60f4b93584555482a98b /debian/vyos-1x.postinst | |
parent | 2124089f7d8388d99e14d0337bf6ce35f9f21f15 (diff) | |
download | vyos-1x-120b866bf28fb8f6a82404a1254f8e3ad491e0ac.tar.gz vyos-1x-120b866bf28fb8f6a82404a1254f8e3ad491e0ac.zip |
Import sudoers configuration from vyatta-cfg-system
Diffstat (limited to 'debian/vyos-1x.postinst')
-rw-r--r-- | debian/vyos-1x.postinst | 3 |
1 files changed, 3 insertions, 0 deletions
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 \ |