polkit-is-privileged - check PolicyKit privileges
polkit-is-privileged [-hvV] -u user -p privilege [-r resource]
The polkit-is-privileged command queries system policy to determine whether a user is allowed for a given privilege and resource. The resource name can be omitted. On the Solaris operating system, RBAC authorizations names should be used as privilege names.
Currently, the only consumer of PolicyKit is hald(8).
The following options are supported:
Display list of options and exit.
Name of privilege associated with user. Command tests for this privilege.
Name of resource associated with user and privilege. Command tests for this resource.
User name or user id that is tested for.
Displays version number.
See attributes(7) for descriptions of the following attributes: