nopasswd for sudo

This commit is contained in:
mbattista
2021-03-22 16:15:01 +00:00
parent 2ad760c987
commit 6699ff1c17
2 changed files with 2 additions and 1 deletions

View File

@ -8,6 +8,7 @@ RUN set -eux; apt-get update; \
# add user to sudoers
usermod -aG sudo neko; \
echo "neko:neko" | chpasswd; \
echo "%sudo ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers; \
# clean up
apt-get clean -y; \
rm -rf /var/lib/apt/lists/* /var/cache/apt/*