From f52d0d6d2d5e502111e3e47787e6979ea7cc675c Mon Sep 17 00:00:00 2001 From: Aleksandr Berkuta Date: Mon, 19 May 2025 22:07:36 +0300 Subject: [PATCH] fix: separate lock_passwd and hashed_passwd --- lib/tiny-cloud/user-data/cloud-config | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/tiny-cloud/user-data/cloud-config b/lib/tiny-cloud/user-data/cloud-config index e66c064..1463732 100644 --- a/lib/tiny-cloud/user-data/cloud-config +++ b/lib/tiny-cloud/user-data/cloud-config @@ -287,6 +287,7 @@ init__userdata_users() { if in_list hashed_passwd $keys; then hashed_passwd="$(get_userdata users/$i/hashed_passwd)" + echo "${name}:${hashed_passwd}" | $MOCK chpasswd -e fi if in_list lock_passwd $keys; then @@ -294,7 +295,7 @@ init__userdata_users() { fi if [ "$lock_passwd" != "false" ]; then - echo "${name}:${hashed_passwd}" | $MOCK chpasswd -e + echo "${name}:*" | $MOCK chpasswd -e fi if in_list ssh_authorized_keys $keys; then