Skip to content

Instantly share code, notes, and snippets.

@stephdl
Created January 8, 2020 13:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stephdl/6a8ae9c4f2b817d06502800e5e593af3 to your computer and use it in GitHub Desktop.
Save stephdl/6a8ae9c4f2b817d06502800e5e593af3 to your computer and use it in GitHub Desktop.
/usr/libexec/nethserver/api/system-authorization/read
[root@prometheus ~]# su admin -c '/usr/libexec/nethserver/api/system-authorization/read | jq'
{
"system": [
"aliases",
"apps",
"backup",
"certificates",
"company",
"dhcp",
"disk-usage",
"dns",
"hostname",
"hosts",
"logs",
"network",
"proxy",
"routes",
"services",
"settings",
"shutdown",
"software-center",
"ssh",
"storage",
"subscription",
"terminal",
"time",
"tls-policy",
"trusted-networks",
"users-groups"
],
"status": {
"isRoot": 0,
"isAdmin": 1
},
"applications": [
"nethserver-antivirus",
"nethserver-awstats",
"nethserver-cgp",
"nethserver-crontabmanager",
"nethserver-fail2ban",
"nethserver-firewall-base",
"nethserver-httpd",
"nethserver-mail",
"nethserver-phpldapadmin",
"nethserver-phpmyadmin",
"nethserver-roundcubemail",
"nethserver-sogo",
"nethserver-vpn-ui"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment