cc @giacomo cc @edoardo_spadoni
# id plop uid=1001(plop@nethservertest.org) gid=1000(locals@nethservertest.org) groups=1000(locals@nethservertest.org),1003(admins@nethservertest.org)
the user plop
is member of the group admins@nethservertest.org
, with the trick at `admins` group instead of `domain admins` I am root or equivalent (I can create, modify user and group, install software…) but I cannot list applications in the application menu(no application). It is the same for the auditors group.
of course applications are installed
# echo '{"action": "list"}'| /usr/libexec/nethserver/api/system-apps/read |jq
[
{
"icon": "legacy.png",
"name": "Subscription",
"release": {
"version": "legacy"
},
"description": "-",
"legacy": 1,
"editable": 0,
"url": "Subscription",
"id": "nethserver-subscription",
"shortcut": 0
},
{
"icon": "legacy.png",
"name": "Diagtools",
"release": {
"version": "legacy"
},
"description": "-",
"legacy": 1,
"editable": 0,
"url": "DiagTools",
"id": "nethserver-diagtools",
"shortcut": 0
},
{
"icon": "legacy.png",
"name": "Restore data",
"release": {
"version": "legacy"
},
"description": "-",
"legacy": 1,
"editable": 0,
"url": "RestoreData",
"id": "nethserver-restore-data",
"shortcut": 0
},
{
"icon": "legacy.png",
"name": "Cgp",
"release": {
"version": "legacy"
},
"description": "-",
"legacy": 1,
"editable": 0,
"url": "CGP",
"id": "nethserver-cgp",
"shortcut": 0
}
]
What I did wrong ?
# cat /etc/nethserver/cockpit/authorization/roles.json
{
"admins": {
"system": [
"storage",
"disk-usage",
"certificates",
"backup",
"dns",
"dhcp",
"services",
"users-groups",
"network",
"ssh",
"tls-policy",
"trusted-networks",
"logs",
"applications",
"software-center",
"subscription",
"terminal"
],
"applications": [ "nethserver-cgp","nethserver-diagtools" ]
},
"managers": {
"system": [
"services",
"users-groups"
],
"applications": []
},
"auditors":
{
"system": [ "ssh" ],
"applications": [ "nethserver-cgp" ]
}
}