fix sudo error

fix "sudo must be owned by uid 0 and have the setuid bit set"
This commit is contained in:
uazo 2022-07-12 15:14:35 +02:00 committed by GitHub
parent a284b224fb
commit 2de67fd5af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -23,6 +23,7 @@ ENV user lg
RUN useradd -m -d /home/${user} ${user} && \
chown -R ${user} /home/${user} && \
adduser ${user} sudo && \
chmod 4755 /usr/bin/sudo && \
echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
USER ${user}