From 11d5b810a75d09b35aaf8eeaf6fc571923a6053b Mon Sep 17 00:00:00 2001 From: Mike Crute Date: Sat, 9 Jan 2021 00:56:40 +0000 Subject: [PATCH] Also lock account when changing password The Amazon marketplace image verifier expects the root account to be locked, not just cleared. Otherwise images that use the bootstrap can't be pushed to the AWS marketplace. --- tiny-ec2-bootstrap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tiny-ec2-bootstrap b/tiny-ec2-bootstrap index e5ae497..3108283 100644 --- a/tiny-ec2-bootstrap +++ b/tiny-ec2-bootstrap @@ -86,7 +86,7 @@ _resize_root_partition() { } _disable_password() { - echo "$1:*" | chpasswd -e + passwd -l "$1" } start() {