1auths(1) User Commands auths(1)
2
3
4
6 auths - print authorizations granted to a user
7
9 auths [ user ]...
10
11
13 The auths command prints on standard output the authorizations that you
14 or the optionally-specified user or role have been granted. Authoriza‐
15 tions are rights that are checked by certain privileged programs to
16 determine whether a user may execute restricted functionality.
17
18
19 Each user may have zero or more authorizations. Authorizations are rep‐
20 resented by fully-qualified names, which identify the organization that
21 created the authorization and the functionality that it controls. Fol‐
22 lowing the Java convention, the hierarchical components of an autho‐
23 rization are separated by dots (.), starting with the reverse order
24 Internet domain name of the creating organization, and ending with the
25 specific function within a class of authorizations.
26
27
28 An asterisk (*) indicates all authorizations in a class.
29
30
31 A user's authorizations are looked up in user_attr(4) and in the
32 /etc/security/policy.conf file (see policy.conf(4)). Authorizations may
33 be specified directly in user_attr(4) or indirectly through
34 prof_attr(4). Authorizations may also be assigned to every user in the
35 system directly as default authorizations or indirectly as default pro‐
36 files in the /etc/security/policy.conf file.
37
39 Example 1 Sample output
40
41
42 The auths output has the following form:
43
44
45 example% auths tester01 tester02
46 tester01 : solaris.system.date,solaris.jobs.admin
47 tester02 : solaris.system.*
48 example%
49
50
51
52
53 Notice that there is no space after the comma separating the authoriza‐
54 tion names in tester01.
55
56
58 The following exit values are returned:
59
60 0 Successful completion.
61
62
63 1 An error occurred.
64
65
67 /etc/user_attr
68
69
70 /etc/security/auth_attr
71
72
73 /etc/security/policy.conf
74
75
76 /etc/security/prof_attr
77
79 See attributes(5) for descriptions of the following attributes:
80
81
82
83
84 ┌─────────────────────────────┬─────────────────────────────┐
85 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
86 ├─────────────────────────────┼─────────────────────────────┤
87 │Availability │SUNWcsu │
88 └─────────────────────────────┴─────────────────────────────┘
89
91 profiles(1), roles(1), getauthattr(3SECDB), auth_attr(4), pol‐
92 icy.conf(4), prof_attr(4), user_attr(4), attributes(5)
93
94
95
96SunOS 5.11 25 Mar 2004 auths(1)