blob: 1e26afc1d480e495b7dee7103827ffd9fdb1972e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
|
'\" te
.\" Copyright (c) 2004, Sun Microsystems, Inc. All Rights Reserved
.\" 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.
.\" 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.
.\" 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]
.TH PROJECTS 1 "May 13, 2004"
.SH NAME
projects \- print project membership of user
.SH SYNOPSIS
.LP
.nf
\fBprojects\fR [\fB-dv\fR] [ \fIuser\fR]
.fi
.LP
.nf
\fBprojects\fR \fB-l\fR [\fIprojectname\fR [\fIprojectname\fR]...]
.fi
.SH DESCRIPTION
.sp
.LP
The \fBprojects\fR command prints on standard output the projects to which the
invoking user or an optionally specified user belongs. Each user belongs to
some set of projects specified in the \fBproject\fR(4) file and possibly in the
associated \fBNIS\fR maps and \fBLDAP\fR databases for project information.
.SH OPTIONS
.sp
.LP
The following options are supported:
.sp
.ne 2
.na
\fB\fB-d\fR\fR
.ad
.RS 6n
Prints only default project.
.RE
.sp
.ne 2
.na
\fB\fB-l\fR\fR
.ad
.RS 6n
Prints verbose info on each project projectname. If no projectnames are given,
info on all projects is printed.
.RE
.sp
.ne 2
.na
\fB\fB-v\fR\fR
.ad
.RS 6n
Prints project descriptions along with project names.
.RE
.SH OPERANDS
.sp
.LP
The following operand is supported:
.sp
.ne 2
.na
\fB\fIprojectname\fR\fR
.ad
.RS 15n
Display information for the specified project.
.RE
.sp
.ne 2
.na
\fB\fIuser\fR\fR
.ad
.RS 15n
Displays project memberships for the specified user.
.RE
.SH EXAMPLES
.LP
\fBExample 1 \fRDisplaying Membership for a Specified User
.sp
.in +2
.nf
example$ \fBprojects paul\fR
default beatles wings
example$ \fBprojects ringo\fR
default beatles
example$ \fBprojects -d paul\fR
beatles
.fi
.in -2
.sp
.SH EXIT STATUS
.sp
.LP
The following exit values are returned:
.sp
.ne 2
.na
\fB\fB0\fR \fR
.ad
.RS 6n
Successful completion.
.RE
.sp
.ne 2
.na
\fB\fB1\fR\fR
.ad
.RS 6n
A fatal error occurred during execution.
.RE
.sp
.ne 2
.na
\fB\fB2\fR\fR
.ad
.RS 6n
Invalid command line options were specified.
.RE
.SH FILES
.sp
.ne 2
.na
\fB\fB/etc/project\fR\fR
.ad
.RS 16n
Local database containing valid project definitions for this machine.
.RE
.SH ATTRIBUTES
.sp
.LP
See \fBattributes\fR(5) for a description of the following attributes:
.sp
.sp
.TS
box;
c | c
l | l .
ATTRIBUTE TYPE ATTRIBUTE VALUE
Stability See below.
.TE
.sp
.LP
The invocation is Evolving. The human-readable output is Unstable.
.SH SEE ALSO
.sp
.LP
\fBgetdefaultproj\fR(3PROJECT), \fBgetprojent\fR(3PROJECT), \fBproject\fR(4),
\fBattributes\fR(5)
|