mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-05-08 17:15:09 +02:00
scripts/genrootfs.sh: locked -> invalid password (fixes #10806)
this still forbids password login but allows logins via ssh keys with pam disabled.
This commit is contained in:
parent
3d584dff1c
commit
fbe926afc7
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ ${APK:-apk} fetch --keys-dir "$keys_dir" --no-cache \
|
|||
--stdout --quiet alpine-base | tar -zx -C "$tmp" etc/
|
||||
|
||||
# make sure root login is disabled
|
||||
sed -i -e 's/^root::/root:!:/' "$tmp"/etc/shadow
|
||||
sed -i -e 's/^root::/root:*:/' "$tmp"/etc/shadow
|
||||
|
||||
branch=edge
|
||||
VERSION_ID=$(awk -F= '$1=="VERSION_ID" {print $2}' "$tmp"/etc/os-release)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue