2 .\" Copyright (c) 2004, Sun Microsystems, Inc. All Rights Reserved
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH AUTHS 1 "Mar 25, 2004"
8 auths \- print authorizations granted to a user
12 \fBauths\fR [ \fIuser\fR ]...
18 The \fBauths\fR command prints on standard output the authorizations that you
19 or the optionally-specified user or role have been granted. Authorizations are
20 rights that are checked by certain privileged programs to determine whether a
21 user may execute restricted functionality.
24 Each user may have zero or more authorizations. Authorizations are represented
25 by fully-qualified names, which identify the organization that created the
26 authorization and the functionality that it controls. Following the Java
27 convention, the hierarchical components of an authorization are separated by
28 dots (\fB\&.\fR), starting with the reverse order Internet domain name of the
29 creating organization, and ending with the specific function within a class of
33 An asterisk (\fB*\fR) indicates all authorizations in a class.
36 A user's authorizations are looked up in \fBuser_attr\fR(4) and in the
37 \fB/etc/security/policy.conf\fR file (see \fBpolicy.conf\fR(4)). Authorizations
38 may be specified directly in \fBuser_attr\fR(4) or indirectly through
39 \fBprof_attr\fR(4). Authorizations may also be assigned to every user in the
40 system directly as default authorizations or indirectly as default profiles in
41 the \fB/etc/security/policy.conf\fR file.
44 \fBExample 1 \fRSample output
47 The \fBauths\fR output has the following form:
52 example% \fBauths tester01 tester02\fR
53 tester01 : solaris.system.date,solaris.jobs.admin
54 tester02 : solaris.system.*
62 Notice that there is no space after the comma separating the authorization
63 names in \fBtester01\fR.
68 The following exit values are returned:
75 Successful completion.
93 \fB/etc/security/auth_attr\fR
96 \fB/etc/security/policy.conf\fR
99 \fB/etc/security/prof_attr\fR
103 \fBprofiles\fR(1), \fBroles\fR(1), \fBgetauthattr\fR(3SECDB),
104 \fBauth_attr\fR(4), \fBpolicy.conf\fR(4), \fBprof_attr\fR(4),
105 \fBuser_attr\fR(4), \fBattributes\fR(5)