Unable to add an user to an other group

pezi

New Member
Aug 2, 2011
28
0
1
According
https://pve.proxmox.com/wiki/User_Management

Each user can be member of several groups.

But if use this command line twice
pveum usermod testuser@pve -group admin
pveum usermod testuser@pve -group group1
the first assignment is overwritten. Seems to be the wrong command. But what is the correct command.
 

dietmar

Proxmox Staff Member
Staff member
Apr 28, 2005
17,074
489
103
Austria
www.proxmox.com
You need to specify all groups (there is no group add function)

#pveum usermod testuser@pve -group admin -group group1
 

dcsapak

Proxmox Staff Member
Staff member
Feb 1, 2016
6,941
814
163
33
Vienna
or the second command has to look like this
Code:
pveum usermod testuser@pve -group group1 -append true
to indicate you want to add a group, not set it
 

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 your own in 60 seconds.

Buy now!