/srv/irclogs.ubuntu.com/2022/06/04/#cloud-init.txt

minimalOlivier67: that depends on your user-data contents00:00
minimaldid you specify "chpasswd:" in your user-data?00:00
minimalif you want ssh-key based login for users then you need to specify the key(s) to use via "ssh_authorized_keys:" in either the "users:" section or globally00:02
Olivier67no for the moment , I just want to have auth by password , I will introduce SSH after06:53
Olivier67here is an example of my user-data06:53
Olivier67users:06:53
Olivier67  - name: user106:53
Olivier67    plain_text_passwd: Pass4Labo06:53
Olivier67    #password: $6$qra9xrGVdH$aGNC14yvGe4Po3M9WodfVpQt76GE/KmUvCT0/78qH0odS1WlgpcVg0vSnG45ByBXL2Dwn9AoALJpIU8rSgQ44/06:53
Olivier67    groups: sudo06:53
Olivier67    shell: /bin/bash06:53
Olivier67  - name: user206:53
Olivier67    #plain_text_passwd: Pass4Labo06:53
Olivier67    passwd: $6$qra9xrGVdH$aGNC14yvGe4Po3M9WodfVpQt76GE/KmUvCT0/78qH0odS1WlgpcVg0vSnG45ByBXL2Dwn9AoALJpIU8rSgQ44/06:53
Olivier67    groups: sudo06:53
Olivier67    shell: /bin/bash06:53
Olivier67I have also tried with hash_passwd06:54
minimalOlivier67: for each user entry add "lock_passwd: false" as this defaults to true (so disabling password-based logins)13:28
minimalthis is indicated in the users section of the docs: https://cloudinit.readthedocs.io/en/latest/topics/modules.html#users-and-groups13:28
minimaland what you observed in the logs confirms this: "running command [ 'passwd' , '-l', 'user']"13:29
=== hexa- is now known as h
=== h is now known as hexa-
rylandblackboxsw, holmanb sorry about the late reply, was already out of the office. I have updated the gist at https://gist.github.com/jbfriedrich/348e988ba26a5a8631d7b33395a0ca90. Right now I think that the issue lies with Cloud Init19:39

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!