date and time created 88/10/21 13:47:49 by bostic
[unix-history] / usr / src / old / man / newgrp.1
CommitLineData
ed6becc3
KM
1.\" @(#)newgrp.1 4.1 (Berkeley) %G%
2.\"
3.TH NEWGRP 1
4.AT 3
5.SH NAME
6newgrp \- log in to a new group
7.SH SYNOPSIS
8.B newgrp
9group
10.SH DESCRIPTION
11.I Newgrp
12changes the group identification of its caller,
13analogously to
14.IR login (1).
15The same person remains logged in,
16and the current directory is unchanged,
17but calculations of access permissions to files are
18performed with respect to the
19new group ID.
20.PP
21A password is demanded if the group has
22a password and the user himself does not.
23.PP
24.I Newgrp
25is known to the shell, which executes it directly without a fork.
26.SH FILES
27/etc/group, /etc/passwd
28.SH "SEE ALSO"
29login(1), group(5)
30.SH BUGS