clearlinux / micro-config-drive

An alternative and small cloud-init implementation in C
Other
46 stars 17 forks source link

Fix the user-data passwd field #7

Closed markdryan closed 8 years ago

markdryan commented 8 years ago

The contents of the passwd field need to be quoted before being passed to useradd. Password hashes often contain $ symbols and without the quotes these symbols are interpeted as shell variables. The result being that the hash you specify in your yaml bears little resemblance to the hash that ends up in /etc/shadow and your user cannot log in.

Signed-off-by: Mark Ryan mark.d.ryan@intel.com

markdryan commented 8 years ago

I don't really have the correct setup to test this on clear linux, so please do so before integrating.