'\" te .\" Copyright (c) 2006, 2011, Oracle and/or its affiliates. All rights reserved. .TH polkit-is-privileged 1M "10 Mar 2011" "SunOS 5.11" "System Administration Commands" .SH NAME polkit-is-privileged \- check PolicyKit privileges .SH SYNOPSIS .LP .nf \fBpolkit-is-privileged\fR [\fB-hvV\fR] \fB-u\fR \fIuser\fR \fB-p\fR \fIprivilege\fR [\fB-r\fR \fIresource\fR] .fi .SH DESCRIPTION .sp .LP The \fBpolkit-is-privileged\fR 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. .sp .LP Currently, the only consumer of PolicyKit is \fBhald\fR(1M). .SH OPTIONS .sp .LP The following options are supported: .sp .ne 2 .mk .na \fB\fB-h\fR, \fB--help\fR\fR .ad .sp .6 .RS 4n Display list of options and exit. .RE .sp .ne 2 .mk .na \fB\fB-p\fR \fIprivilege\fR, \fB--privilege\fR \fIprivilege\fR\fR .ad .sp .6 .RS 4n Name of privilege associated with user. Command tests for this privilege. .RE .sp .ne 2 .mk .na \fB\fB-r\fR \fIresource\fR, \fB--resource\fR \fIresource\fR\fR .ad .sp .6 .RS 4n Name of resource associated with user and privilege. Command tests for this resource. .RE .sp .ne 2 .mk .na \fB\fB-u\fR \fIuser\fR, \fB--user\fR \fIuser\fR\fR .ad .sp .6 .RS 4n User name or user id that is tested for. .RE .sp .ne 2 .mk .na \fB\fB-v\fR, \fB--verbose\fR\fR .ad .sp .6 .RS 4n Verbose mode. .RE .sp .ne 2 .mk .na \fB\fB-V\fR, \fB--version\fR\fR .ad .sp .6 .RS 4n Displays version number. .RE .SH ATTRIBUTES .sp .LP See \fBattributes\fR(5) for descriptions of the following attributes: .sp .sp .TS tab() box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) . ATTRIBUTE TYPEATTRIBUTE VALUE _ Availabilitysystem/library/policykit _ Interface StabilityVolatile .TE .SH SEE ALSO .sp .LP \fBauths\fR(1), \fBprofiles\fR(1), \fBhald\fR(1M), \fBgetauthattr\fR(3C), \fBauth_attr\fR(4), \fBpolicy.conf\fR(4), \fBprof_attr\fR(4), \fBuser_attr\fR(4), \fBattributes\fR(5)