New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Root password reset via cloud-config not working #931
Comments
Bump. Does anyone have a working solution? During the execution of cloud-init it already runs in root. Afaik using
means if that user is already present on the system, cloud-init would skip setting the password. Cloud-Init should support plain-text chpasswd and hashed (#659) chpasswd as well. Passing the following user-data text didn't work for me. Any idea?
|
Same problem here anyone found a solution yet? Having a closer look on
My best guess for workaround would be to replace the whole root line in /etc/shadow, but that looks to be a bit hacky for me. |
you can build an ova with the password age turned off or set to a duration you like Please see setting To build an ova, from the source root, do make image IMG_NAME=ova |
If some wants to do it without build OVA (like me who needs on on rpi image, not vmware), here is the root enablement.
|
Got the same problem with v3 Revision 2. Any updates? |
Tried this with Photon v2 and v3, neither of these seems to handle a root password change via cloud-config.
The solution in #659 doesn't work.
Neither does using chpasswd.
The cloud-init.log contains "User root already exists, skipping".
The text was updated successfully, but these errors were encountered: