I'm trying to create a user with a non-encrypted password in my server deployed via MAAS using curtin installer.
User : installer
Password : lowpass
In my curtin_userdata file I have these lines :
late_commands: 90_create_installer: ["sh", "-c", "sudo useradd installer -g 0"] 92_set_installer_password: ["sh", "-c", "echo 'installer:lowpass' | sudo chpasswd"] 94_cat: ["sh", "-c", "cat /etc/passwd"]
In MAAS log while the "cat /etc/passwd" is running this line appears well :
But once it's finished, I connect to my server and then the user is not present anymore.
Someone has any idea ?