2.9BSD/usr/man/cat1/newgrp.1

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


NEWGRP(1)           UNIX Programmer's Manual            NEWGRP(1)

NAME
     newgrp - log in to a new group

SYNTAX
     newgrp group

DESCRIPTION
     _N_e_w_g_r_p changes the group identification of its caller,
     analogously to _l_o_g_i_n(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 ID.

     If the `SHELL' environment variable is set, _n_e_w_g_r_p will use
     it as the name of the new shell. The login environment is
     also initialized for foreign shells. In this way multiple
     shells can be used on the system interchangably.

     A password is demanded if the group has a password.

     _N_e_w_g_r_p is known to the shell, which executes it directly
     without a fork.

FILES
     /etc/group, /etc/passwd

SEE ALSO
     login(1), group(5)

BUGS
     Since newgrp starts a new shell, shell context and variables
     not in the environment are lost.

Printed 7/25/83                                                 1