39 lines
1012 B
Groff
39 lines
1012 B
Groff
.\" @(#)groups.1 1.1 94/10/31 SMI; from UCB 4.1
|
|
.TH GROUPS 1 "9 September 1987"
|
|
.SH NAME
|
|
groups \- display a user's group memberships
|
|
.SH SYNOPSIS
|
|
.B groups
|
|
[
|
|
.IR username \|.\|.\|.
|
|
]
|
|
.SH DESCRIPTION
|
|
.IX "groups command" "" "\fLgroups\fP \(em display group membership"
|
|
.IX display "group membership"
|
|
.LP
|
|
With no arguments,
|
|
.B groups
|
|
displays the groups to which you belong; else it displays the groups
|
|
to which the
|
|
.I username
|
|
belongs.
|
|
Each user belongs to a group specified in the password file
|
|
.B /etc/passwd
|
|
and possibly to other groups as specified in the file
|
|
.BR /etc/group .
|
|
If you do not own a file but belong to the group which it is owned
|
|
by then you are granted group access to the file.
|
|
.SH FILES
|
|
.PD 0
|
|
.TP 20
|
|
.B /etc/passwd
|
|
.TP
|
|
.B /etc/group
|
|
.PD
|
|
.SH "SEE ALSO"
|
|
.BR getgroups (2V)
|
|
.\" .SH BUGS
|
|
.\"The groups facility will be changed slightly before 4.2bsd to include
|
|
.\"the notion of accounting groups; this will make an option to this
|
|
.\"command to print the current accounting group desirable.
|