Merge pull request #38 from thelamer/3.8

remove root login to disable passwordless su from abc 3.8
This commit is contained in:
aptalca 2019-05-11 00:40:17 -04:00 committed by GitHub
commit 815c5dc78d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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