can't create/change user password via CLI single line V3 and V4

pdanjou

New Member
Sep 16, 2015
6
0
1
I tried stable and beta.

I want to add user password via CLI. Man/Wiki says:
pveum passwd <userid> -password <string> [OPTIONS]

but I always end up with:
400 too many arguments
pveum passwd <userid>

so e.g. pveum passwd peter@pve -password testpassword , does not work, is this a bug or am I too stupid?
 
I tried stable and beta.

I want to add user password via CLI. Man/Wiki says:
pveum passwd <userid> -password <string> [OPTIONS]

but I always end up with:
400 too many arguments
pveum passwd <userid>

so e.g. pveum passwd peter@pve -password testpassword , does not work, is this a bug or am I too stupid?

Hi,
looks for me like an Bug.

Perhaps you should filled an bugreport? https://bugzilla.proxmox.com/

Udo
 
As workaround, just use:

# pveum passwd <userid>

Then enter the password when you are asked for.
 
@udo: Just wanted to make sure first I am not making a mistake. Since I found it curious that it affects all versions and I am surprised nobody ever noticed it.
I added it on bugzilla
 

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!