mirror of
https://github.com/linuxserver/docker-baseimage-alpine.git
synced 2026-02-20 00:47:04 +08:00
remove root login to disable passwordless su from abc
This commit is contained in:
parent
71f878bb3c
commit
2f71fc2705
@ -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…
x
Reference in New Issue
Block a user