Skip to content

Commit 04af72e

Browse files
remove sudoers entry in base image for lowpriv user
1 parent acb33bc commit 04af72e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

‎docker/Dockerfile‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ RUN apt-get update && \
1212
# 1 - users / passwords (root: aim8Du7h - lowpriv: trustno1)
1313
RUN useradd -m -s /bin/bash lowpriv && \
1414
echo 'lowpriv:trustno1' | chpasswd && \
15-
echo 'root:aim8Du7h' | chpasswd && \
16-
echo 'lowpriv ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
15+
echo 'root:aim8Du7h' | chpasswd
1716

1817
# 2 - optional host-provided SSH key
1918
ARG HOST_SSH_PUBKEY=""

0 commit comments

Comments
 (0)