[SOLVED] Fine-tuning user permissions

shalak

Member
May 9, 2021
44
0
11
38
Hello!

I'm looking for neat way, to allow given user/token to perform only one particular action: to shutdown a node and shutdown/start a VM.

The only way I came up with, it using SSH and adding a command-specific SSH key to the /root/.ssh/authorized_keys, something like command="shutdown" ssh-ed25519 UNIQUE_SSH_KEY (+2 others for VM startup/shutdown). Then I could give only those specific SSH key to the client.

Unfortunately, that means, that the client needs to have SSH capabilities, which complicates things - I'm looking for a way to do this over REST API. Is there a way?

edit: huh, I just noticed the Sys.PowerMgmt role in man pveum. Case closed :)
 
Last edited:

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!