Create admin user: Difference between revisions
No edit summary |
No edit summary |
||
| Line 15: | Line 15: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
2. | 2. Create the group: | ||
<syntaxhighlight lang="bash"> | |||
pveum group add admin -comment "System Administrators" | |||
pveum acl modify / -group admin -role Administrator | |||
</syntaxhighlight> | |||
3. Assign group to user: | |||
<syntaxhighlight lang="bash"> | |||
pveum user modify <user>@pam -group admin | |||
</syntaxhighlight> | |||
3+1. Disable root on gui (optional): | |||
<syntaxhighlight lang="bash"> | |||
pveum user modify root@pam --enable 0 | |||
</syntaxhighlight> | |||
There are use cases when you need it, to enable | |||
<syntaxhighlight lang="bash"> | |||
pveum user modify root@pam --enable 1 | |||
</syntaxhighlight> | |||
Revision as of 08:39, 29 August 2024
1. Create user:
os level
useradd -s /bin/bash -m <user>
pve level
pveum user add <user>@pam
2. Create the group:
pveum group add admin -comment "System Administrators"
pveum acl modify / -group admin -role Administrator
3. Assign group to user:
pveum user modify <user>@pam -group admin
3+1. Disable root on gui (optional):
pveum user modify root@pam --enable 0
There are use cases when you need it, to enable
pveum user modify root@pam --enable 1