Shell user permissions controlled by PVE

Oct 10, 2022
48
2
13
I've been using `sudo` to let a shell user have access to Proxmox commands, but it bypasses the permissions set in PVE.
How to add a shell user with access to the CLI commands controlled by Proxmox?
 
Bash:
useradd bingsin -s /bin/bash -G root -m
echo "bingsin ALL=(ALL) NOPASSWD: ALL" >>/etc/sudoers
pveum acl modify / --roles Administrator --user bingsin@pam
Now you can login as bingsin@pam and try ` sudo qm list`
 
@bingsin, that' exactly what I've been doing, and it is not ideal because the permissions are not controlled by PVE and the user may have access to other commands via `sudo`.
So, my question is how to get the user permissions controlled by Proxmox running CLI commands.