[SOLVED] Cloud-init disable password login

foadk

Member
Mar 25, 2020
19
0
6
36
Hi.
I want to disable password login using cloud-init. I cloud not find a cloud-init option for that.
I edited my images and enabled password login using guestfish. But in certain cases, I want to disable password login at build time.
I used custom init config file using --cicustom "user=local:snippets/userconfig.yaml" and set the parameter: "lock_passwd: true" but it didn't work (Other options set in the file worked though).
Is there a way to disable password login using cloud-int?