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.
 

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!