pveum passwd - how to provide using cli ?

SRU

Member
Dec 2, 2020
38
4
13
24
Hi,
We like to run something like:
pveum passwd sru@pve <<passwordhash_here>>

or something like:
thehash="<<hash>>" pveum passwd sru@pve

Is any method supported to provide a password *hash*, not a cleartext password from the cli ?

Reason: we would like to create users via saltstack.

Thanks in advance, sru
 
pveum currently only support giving the password via a terminal (so not as argument), but even the api only takes the password and no hash as parameter
you could directly modify the file /etc/pve/priv/shadow.cfg
or you can open a feature request here: https://bugzilla.proxmox.com
(i can see that providing the crypt'd entry could make sense)