Non-root admin user vs. certificate management

microlinux

New Member
Mar 30, 2021
17
1
3
57
Hi,

These last two weeks I've been fiddling extensively with Proxmox installed on a pair of servers, a local and a public sandbox machine. So far things are running nicely. Currently I'm fine-tuning everything and sanding down the edges.

One of the steps suggested in many online tutorials is to replace the root account by a non-root account with admin rights. So this is what I did, and following the docs, I have a 'microlinux' user with admin rights. This user can connect to the web interface, create VMs and start and stop them, so everything seems fine. So I thought from there I could simply disable my root account altogether and manage things with my 'microlinux' user in the web interface and by using 'sudo' in the console.

Apparently the root user is still required to manage some operations. I just tried to generate a LetsEncrypt certificate on my public machine. This is an operation I have already successfully handled in the past on another public machine, using the root account.

But this time, when I try to make the first step and register an ACME account, I get the following error:

Code:
Permission check failed (user != root@pam) (403)

So I have to conclude that after all it's a bad idea to disable the root account, since it's apparently needed for some operations.

Any suggestions ?
 
I'll answer this myself, since I just found a workaround.

Creating the ACME account works as long as I'm doing it in the console using 'sudo':

Code:
$ sudo pvenode acme account register default info@microlinux.fr
Directory endpoints:
0) Let's Encrypt V2
1) Let's Encrypt V2 Staging
2) Custom
Enter selection: 0
...
Terms of Service:
Do you agree to the above terms? [y|N]: y
...
Generating ACME account key...
Registering ACME account...
Registration successful...
Task OK

From this point, I can connect to the web interface (as my non-root admin user 'microlinux') and generate a LetsEncrypt certificate.
 

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!