Skip to content

com.limdm.polkit (list)

Console: polkit rules.

{"rules": [
  {"name": "network", "actions": ["org.freedesktop.NetworkManager.*"], "groups": ["netdev"],
   "result": "yes", "local_active_only": true},
  {"name": "printers", "actions": ["org.opensuse.cupspkhelper.mechanism.*"], "groups": [],
   "result": "auth_self_keep", "local_active_only": true}]}
Field Type Rules
rules[].name text lower case letters, digits, ., _, -
rules[].actions list of text at least one action ID, or a namespace with .* (at least three segments)
rules[].groups list of text empty means every user
rules[].result text yes, no, auth_self, auth_self_keep, auth_admin, auth_admin_keep
rules[].local_active_only true or false only the user at the device

Merged by name.

  • Written to /etc/polkit-1/rules.d/60-limdm-<name>.rules; polkitd reloads by itself.
  • org.freedesktop.policykit.* (pkexec) cannot be granted.
  • result yes needs groups or local_active_only, so nobody gets an action without authentication from remote.

Typical uses: let users manage networks, printers, time zone or mount disks without admin rights.

Field reference

Generated from the payload schema of the server (GET /api/v1/schemas/{type}), the same reference the console editor shows. Unknown fields are rejected.

com.limdm.polkit

Console: polkit rules. polkit rules that allow or deny system actions to groups.

Field Type Meaning Limits
rules list of object Rules
rules[].name string Name
rules[].actions list of string Actions polkit action IDs; prefix.* matches a namespace.
rules[].groups list of string Groups Empty means every user.
rules[].result string Result one of "yes" (Allow), "no" (Deny), "auth_self" (Own password), "auth_self_keep" (Own password, remembered), "auth_admin" (Admin password), "auth_admin_keep" (Admin password, remembered)
rules[].local_active_only boolean Local active session only
Example payload
{
  "rules": [
    {
      "name": "network",
      "actions": [
        "org.freedesktop.NetworkManager.*"
      ],
      "groups": [
        "netdev"
      ],
      "result": "yes",
      "local_active_only": true
    },
    {
      "name": "printers",
      "actions": [
        "org.opensuse.cupspkhelper.mechanism.*"
      ],
      "groups": [],
      "result": "auth_self_keep",
      "local_active_only": true
    }
  ]
}