Skip to content

Commit f34ee5e

Browse files
committed
security: remove passwords for root and ubuntu
This prevents the users from being logged into except by SSH public key authentication.
1 parent f39bdce commit f34ee5e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

ebssurrogate/scripts/qemu-bootstrap-nix.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,10 @@ function clean_system {
156156
rm -rf /root/.vpython*
157157
rm -rf /root/go
158158
rm -rf /mnt/usr/share/doc
159+
160+
# remove passwords in user-data-cloudimg.img (required for Packer login)
161+
usermod -p '*' ubuntu
162+
usermod -p '*' root
159163
}
160164

161165
install_nix

0 commit comments

Comments
 (0)