'\" te .\" Copyright (c) 2004, Sun Microsystems, Inc. All Rights Reserved .TH projects 1 "13 May 2004" "SunOS 5.11" "User Commands" .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 .mk .na \fB\fB-d\fR\fR .ad .RS 6n .rt Prints only default project. .RE .sp .ne 2 .mk .na \fB\fB-l\fR\fR .ad .RS 6n .rt Prints verbose info on each project projectname. If no projectnames are given, info on all projects is printed. .RE .sp .ne 2 .mk .na \fB\fB-v\fR\fR .ad .RS 6n .rt Prints project descriptions along with project names. .RE .SH OPERANDS .sp .LP The following operand is supported: .sp .ne 2 .mk .na \fB\fIprojectname\fR\fR .ad .RS 15n .rt Display information for the specified project. .RE .sp .ne 2 .mk .na \fB\fIuser\fR\fR .ad .RS 15n .rt 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 .mk .na \fB\fB0\fR \fR .ad .RS 6n .rt Successful completion. .RE .sp .ne 2 .mk .na \fB\fB1\fR\fR .ad .RS 6n .rt A fatal error occurred during execution. .RE .sp .ne 2 .mk .na \fB\fB2\fR\fR .ad .RS 6n .rt Invalid command line options were specified. .RE .SH FILES .sp .ne 2 .mk .na \fB\fB/etc/project\fR\fR .ad .RS 16n .rt 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 tab() box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) . ATTRIBUTE TYPEATTRIBUTE VALUE _ Availabilitysystem/core-os StabilitySee below. .TE .sp .LP The invocation is Committed. The human-readable output is Uncommitted. .SH SEE ALSO .sp .LP \fBgetdefaultproj\fR(3PROJECT), \fBgetprojent\fR(3PROJECT), \fBproject\fR(4), \fBattributes\fR(5)