Setting secure username and password


Is there secure way to set username and password for new user when instantiating from template?

If I use user inputs and set username and password based on those anyone can read username / password
combination from VMware tools.

vmtoolsd --cmd ‘info-get guestinfo.opennebula.context’ | base64 -d

Should I just make new users so that they will be prompted to change password on first login or
is there better way which wouldn’t cause this hassle for users.

I would recommend prompting for password change since the VM contextualization mechanism always implies the use of guestinfo.opennebula.context, which persists in the VM.