remove root login to disable passwordless su from abc
This commit is contained in:
parent
78c80a36e5
commit
3f9c6749c1
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue