diff --git a/lib/tiny-cloud/user-data/cloud-config b/lib/tiny-cloud/user-data/cloud-config index 8406ac4..2e3cd74 100644 --- a/lib/tiny-cloud/user-data/cloud-config +++ b/lib/tiny-cloud/user-data/cloud-config @@ -288,6 +288,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 @@ -295,7 +296,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