remove root login to disable passwordless su from abc

This commit is contained in:
thelamer 2019-05-10 19:48:50 -07:00
parent 78c80a36e5
commit 3f9c6749c1
3 changed files with 6 additions and 3 deletions

View file

@ -31,7 +31,8 @@ RUN \
mkdir /root-out && \
tar xf \
/rootfs.tar.xz -C \
/root-out
/root-out && \
sed -i -e 's/^root::/root:!:/' /root-out/etc/shadow
# Runtime stage
FROM scratch

View file

@ -31,7 +31,8 @@ RUN \
mkdir /root-out && \
tar xf \
/rootfs.tar.xz -C \
/root-out
/root-out && \
sed -i -e 's/^root::/root:!:/' /root-out/etc/shadow
# Runtime stage
FROM scratch

View file

@ -31,7 +31,8 @@ RUN \
mkdir /root-out && \
tar xf \
/rootfs.tar.xz -C \
/root-out
/root-out && \
sed -i -e 's/^root::/root:!:/' /root-out/etc/shadow
# Runtime stage
FROM scratch