Go to main content

man pages section 8: System Administration Commands

Exit Print View

Updated: Wednesday, July 27, 2022
 
 

polkit-is-privileged(8)

Name

polkit-is-privileged - check PolicyKit privileges

Synopsis

polkit-is-privileged  [-hvV] -u user -p privilege [-r resource]

Description

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).

Options

The following options are supported:

–h, –-help

Display list of options and exit.

–p privilege, –-privilege privilege

Name of privilege associated with user. Command tests for this privilege.

–r resource, –-resource resource

Name of resource associated with user and privilege. Command tests for this resource.

–u user, –-user user

User name or user id that is tested for.

–v, –-verbose

Verbose mode.

–V, –-version

Displays version number.

Attributes

See attributes(7) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Availability
system/library/policykit
Interface Stability
Volatile

See Also

auths(1), profiles(1), getauthattr(3C), auth_attr(5), policy.conf(5), prof_attr(5), user_attr(5), attributes(7), hald(8)