SysIII/usr/src/man/man1/newgrp.1

Compare this file to the similar file:
Show the results in this format:

.TH NEWGRP 1
.SH NAME
newgrp \- log in to a new group
.SH SYNOPSIS
.B newgrp
[ group ]
.SH DESCRIPTION
.I Newgrp\^
changes the group identification of its caller,
analogously to
.IR login (1).
The same person remains logged in,
and the current directory is unchanged,
but calculations of access permissions to files are
performed with respect to the
new group
.SM ID\*S.
.PP
.I Newgrp\^
without an argument changes the group identification to
the group in the password file; in effect it changes the group
identification back to the caller's original group.
.PP
A password is demanded if the group has
a password and the user himself does not,
or if the group has a password and the user is not listed
in
.B /etc/group
as being
a member of that group.
.PP
When most users log in, they
are members of the group named
.BR other .
.SH FILES
/etc/group
.br
/etc/passwd
.SH SEE ALSO
login(1),
group(5).
.SH BUGS
There is no convenient way to enter a password into
.BR /etc/group .
.br
Use of group passwords is not encouraged, because,
by their very nature, they encourage poor security practices.
Group passwords may disappear in the future.