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)
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!