Skip to main content

Set the password of a user

PUT 

/api/node/:hostname/user/:name/password

Sets the password with chpasswd -e, from its hash on standard input. The controller hashes the password, so the job and NATS have only the hash. Each call makes a new hash, so it always reports changed: true. A user that the host does not have is not found. It runs on the Debian family only, and elsewhere reports skipped.

Request​

Responses​

Each target host's result, with whether it changed.