← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1570325] [NEW] RFE: chpasswd in cloud-init should support hashed passwords

 

Public bug reported:

The only way to assign a hashed password to a user is to use passwd within a users entry like this:
users:
   - name: root
     passwd: $6$Cl....Hy$IEJciQZLxQLzkST......g.bzqf3lUl.

But, if that user is already present on the system, cloud-init will skip setting the password:
journal: [CLOUDINIT] __init__.py[INFO]: User root already exists, skipping.

You can change password with chpasswd, but that only supports clear-text
password.

Requesting that chpasswd get support for setting a hashed password to
users.

** Affects: cloud-init
     Importance: Undecided
         Status: New

** Summary changed:

- RFE: chpasswd in cloud-init should  
+ RFE: chpasswd in cloud-init should support hashed passwords

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/1570325

Title:
  RFE: chpasswd in cloud-init should support hashed passwords

Status in cloud-init:
  New

Bug description:
  The only way to assign a hashed password to a user is to use passwd within a users entry like this:
  users:
     - name: root
       passwd: $6$Cl....Hy$IEJciQZLxQLzkST......g.bzqf3lUl.

  But, if that user is already present on the system, cloud-init will skip setting the password:
  journal: [CLOUDINIT] __init__.py[INFO]: User root already exists, skipping.

  You can change password with chpasswd, but that only supports clear-
  text password.

  Requesting that chpasswd get support for setting a hashed password to
  users.

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1570325/+subscriptions


Follow ups