nightly: remove unused BINARCHIVE
[unleashed.git] / share / man / man4 / prof_attr.4
blob41bf4622b52b45e47e6408915d3813389114f833
1 '\" te
2 .\"  Copyright (c) 2008, 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 PROF_ATTR 4 "Feb 25, 2017"
7 .SH NAME
8 prof_attr \- profile description database
9 .SH SYNOPSIS
10 .LP
11 .nf
12 \fB/etc/security/prof_attr\fR
13 .fi
15 .SH DESCRIPTION
16 .LP
17 \fB/etc/security/prof_attr\fR is a local source for execution profile names,
18 descriptions, and other attributes of execution profiles. The \fBprof_attr\fR
19 file can be used with other profile sources, including the \fBprof_attr\fR
20 \fBNIS\fR map. Programs use the \fBgetprofattr\fR(3SECDB)
21 routines to gain access to this information.
22 .sp
23 .LP
24 The search order for multiple \fBprof_attr\fR sources is specified in the
25 \fB/etc/nsswitch.conf\fR file, as described in the \fBnsswitch.conf\fR(4) man
26 page.
27 .sp
28 .LP
29 An execution profile is a mechanism used to bundle together the commands and
30 authorizations needed to perform a specific function. An execution profile can
31 also contain other execution profiles. Each entry in the \fBprof_attr\fR
32 database consists of one line of text containing five fields separated by
33 colons (\fB:\fR). Line continuations using the backslash (\fB\e\fR) character
34 are permitted. The format of each entry is:
35 .sp
36 .LP
37 \fIprofname\fR:\fIres1\fR:\fIres2\fR:\fIdesc\fR:\fIattr\fR
38 .sp
39 .ne 2
40 .na
41 \fB\fIprofname\fR\fR
42 .ad
43 .RS 12n
44 The name of the profile. Profile names are case-sensitive.
45 .RE
47 .sp
48 .ne 2
49 .na
50 \fB\fIres1\fR\fR
51 .ad
52 .RS 12n
53 Reserved for future use.
54 .RE
56 .sp
57 .ne 2
58 .na
59 \fB\fIres2\fR\fR
60 .ad
61 .RS 12n
62 Reserved for future use.
63 .RE
65 .sp
66 .ne 2
67 .na
68 \fB\fIdesc\fR\fR
69 .ad
70 .RS 12n
71 A long description. This field should explain the purpose of the profile,
72 including what type of user would be interested in using it. The long
73 description should be suitable for displaying in the help text of an
74 application.
75 .RE
77 .sp
78 .ne 2
79 .na
80 \fB\fIattr\fR\fR
81 .ad
82 .RS 12n
83 An optional list of semicolon-separated (\fB;\fR) key-value pairs that describe
84 the security attributes to apply to the object upon execution. Zero or more
85 keys can be specified. There are four valid keys: \fBhelp\fR, \fBprofiles\fR,
86 \fBauths\fR, and \fBprivs\fR.
87 .sp
88 \fBhelp\fR is assigned the name of a file ending in \fB\&.htm\fR or
89 \fB\&.html\fR.
90 .sp
91 \fBauths\fR specifies a comma-separated list of authorization names chosen from
92 those names defined in the \fBauth_attr\fR(4) database. Authorization names can
93 be specified using the asterisk (\fB*\fR) character as a wildcard. For example,
94 \fBsolaris.printer.*\fR would mean all of Sun's authorizations for printing.
95 .sp
96 \fBprofiles\fR specifies a comma-separated list of profile names chosen from
97 those names defined in the \fBprof_attr\fR database.
98 .sp
99 \fBprivs\fR specifies a comma-separated list of privileges names chosen from
100 those names defined in the \fBpriv_names\fR(4) database. These privileges can
101 then be used for executing commands with \fBpfexec\fR(1).
104 .SH EXAMPLES
106 \fBExample 1 \fRAllowing Execution of All Commands
109 The following entry allows the user to execute all commands:
112 .in +2
114 \fBAll:::Use this profile to give a :help=All.html\fR
116 .in -2
120 \fBExample 2 \fRConsulting the Local \fBprof_attr\fR File First
123 With the following \fBnsswitch.conf\fR entry, the local \fBprof_attr\fR file is
124 consulted before the \fBNIS\fR map:
127 .in +2
129 \fBprof_attr: files nis\fR
131 .in -2
134 .SH FILES
136 \fB/etc/nsswitch.conf\fR
139 \fB/etc/security/prof_attr\fR
140 .SH NOTES
142 The root user is usually defined in local databases because root needs to be
143 able to log in and do system maintenance in single-user mode and at other times
144 when the network name service databases are not available. So that the profile
145 definitions for root can be located at such times, root's profiles should be
146 defined in the local \fBprof_attr\fR file, and the order shown in the example
147 \fBnsswitch.conf\fR(4) file entry under EXAMPLES is highly recommended.
150 Because the list of legal keys is likely to expand, any code that parses this
151 database must be written to ignore unknown key-value pairs without error. When
152 any new keywords are created, the names should be prefixed with a unique
153 string, such as the company's stock symbol, to avoid potential naming
154 conflicts.
157 Each application has its own requirements for whether the \fBhelp\fR value must
158 be a relative pathname ending with a filename or the name of a file. The only
159 known requirement is for the name of a file.
162 The following characters are used in describing the database format and must be
163 escaped with a backslash if used as data: colon (\fB:\fR), semicolon (\fB;\fR),
164 equals (\fB=\fR), and backslash (\fB\e\fR).
165 .SH SEE ALSO
167 \fBauths\fR(1), \fBpfexec\fR(1), \fBprofiles\fR(1), \fBgetauthattr\fR(3SECDB),
168 \fBgetprofattr\fR(3SECDB), \fBgetuserattr\fR(3SECDB), \fBauth_attr\fR(4),
169 \fBexec_attr\fR(4), \fBpriv_names\fR(4), \fBuser_attr\fR(4)