From: Martin Pitt Date: Fri, 13 Mar 2020 07:05:23 +0000 (+0100) Subject: build-debian-toolbox: Allow sudo with empty password X-Git-Url: https://piware.de/gitweb/?a=commitdiff_plain;h=2b6b0bf80b022c560c3cdcae42c9ddb2c140ac01;p=bin.git build-debian-toolbox: Allow sudo with empty password Fedora uses `nullok` in PAM config by default. --- diff --git a/build-debian-toolbox b/build-debian-toolbox index 1bb7781..9558439 100755 --- a/build-debian-toolbox +++ b/build-debian-toolbox @@ -20,6 +20,9 @@ echo force-unsafe-io > /etc/dpkg/dpkg.cfg.d/unsafe-io apt-get update apt-get install -y libnss-myhostname sudo eatmydata libcap2-bin + +# allow sudo with empty password +sed -i "s/nullok_secure/nullok/" /etc/pam.d/common-auth ' toolbox run --container $RELEASE sh -exc '