fix sudo error
fix "sudo must be owned by uid 0 and have the setuid bit set"
This commit is contained in:
parent
a284b224fb
commit
2de67fd5af
@ -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}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user