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 && \
|
mkdir /root-out && \
|
||||||
tar xf \
|
tar xf \
|
||||||
/rootfs.tar.xz -C \
|
/rootfs.tar.xz -C \
|
||||||
/root-out
|
/root-out && \
|
||||||
|
sed -i -e 's/^root::/root:!:/' /root-out/etc/shadow
|
||||||
|
|
||||||
# Runtime stage
|
# Runtime stage
|
||||||
FROM scratch
|
FROM scratch
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,8 @@ RUN \
|
||||||
mkdir /root-out && \
|
mkdir /root-out && \
|
||||||
tar xf \
|
tar xf \
|
||||||
/rootfs.tar.xz -C \
|
/rootfs.tar.xz -C \
|
||||||
/root-out
|
/root-out && \
|
||||||
|
sed -i -e 's/^root::/root:!:/' /root-out/etc/shadow
|
||||||
|
|
||||||
# Runtime stage
|
# Runtime stage
|
||||||
FROM scratch
|
FROM scratch
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,8 @@ RUN \
|
||||||
mkdir /root-out && \
|
mkdir /root-out && \
|
||||||
tar xf \
|
tar xf \
|
||||||
/rootfs.tar.xz -C \
|
/rootfs.tar.xz -C \
|
||||||
/root-out
|
/root-out && \
|
||||||
|
sed -i -e 's/^root::/root:!:/' /root-out/etc/shadow
|
||||||
|
|
||||||
# Runtime stage
|
# Runtime stage
|
||||||
FROM scratch
|
FROM scratch
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue