mirror of
https://github.com/stefanpejcic/openpanel
synced 2025-06-26 18:28:26 +00:00
70 lines
1.8 KiB
Markdown
70 lines
1.8 KiB
Markdown
# Reserved and Invalid Usernames
|
||
|
||
## Basic restrictions
|
||
|
||
|
||
### OpenPanel
|
||
|
||
OpenPanel applies the following rules when you create or modify a OpenPanel username:
|
||
|
||
Usernames may **only** use lowercase letters (a–z) and digits (0–9).
|
||
- Usernames cannot contain less than **3** characters.
|
||
- Usernames cannot contain more than **16** characters.
|
||
|
||
### OpenAdmin
|
||
OpenAdmin applies the following rules when you create or modify an admin username:
|
||
|
||
Usernames may **only** use lowercase letters (a–z) and digits (0–9).
|
||
- Usernames cannot contain less than **5** characters.
|
||
- Usernames cannot contain more than **20** characters.
|
||
|
||
Passwords may **only** use lowercase letters (a–z) and digits (0–9).
|
||
- Usernames cannot contain less than **5** characters.
|
||
- Usernames cannot contain more than **20** characters.
|
||
|
||
### SSH
|
||
OpenAdmin applies the following rules when you modify an SSH password:
|
||
|
||
Passwords may **only** use lowercase letters (a–z) and digits (0–9).
|
||
- Passwords cannot contain less than **8** characters.
|
||
- Passwords cannot contain more than **20** characters.
|
||
|
||
## Reserved usernames
|
||
|
||
OpenPanel reserves some usernames for the system’s use, and you cannot use them for OpenPanel accounts. This list of reserved usernames can grow over time, and new versions of OpenPanel may add to this list.
|
||
|
||
OpenPanel checks the following file to determine whether to reserve or restrict a username:
|
||
|
||
```bash
|
||
/etc/openpanel/openadmin/config/forbidden_usernames.txt
|
||
```
|
||
|
||
Currently reserved usernames:
|
||
|
||
- test
|
||
- restart
|
||
- reboot
|
||
- shutdown
|
||
- exec
|
||
- root
|
||
- admin
|
||
- ftp
|
||
- lsws
|
||
- litespeed
|
||
- 1000
|
||
- vsftpd
|
||
- httpd
|
||
- apache2
|
||
- apache
|
||
- docker
|
||
- podman
|
||
- nginx
|
||
- php
|
||
- mysql
|
||
- mysqld
|
||
- www-data
|
||
- openpanel
|
||
- openadmin
|
||
|
||
To reserver a certail username, simply add it to the forbidden_usernames.txt file.
|