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