Reason for minimum (4) username length?

KB19

Member
Apr 17, 2020
34
4
13
Vienna
Currently it's not possible to create a new PBS user with a very short username:
GUI: The minimum length for this field is 4
CLI: value does not match the regex pattern
This restriction doesn't exist at PVE, I'm just curious: Is there a (technical) reason for this restriction? :)

A short statement from a developer would be highly appreciated.

It's possible to manually change the username afterwards in both config files (shadow.json & user.cfg) but I'm unable to evaluate the side effects of such a change. Edit: Don't try this, there are various other length checks (≥8) for user@pbs arguments in place! :D
 
Last edited:
I don't think there was any particular reason other than "seems like a sensible limit to avoid confusing user ids" ;)
 
  • Like
Reactions: KB19

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!