


      NEWGRP(1)                   (UNIX 5.0)                  NEWGRP(1)



      NAME
           newgrp - log in to a new group

      SYNTAX
           newgrp [-] [ group-ID-num ]

      DESCRIPTION
           Newgrp changes the group identification of the user who
           invokes it.  After executing newgrp, the same user remains
           logged in, and the working directory remains the same, but
           the user becomes a member of group-ID-num and has group
           access to the files belonging to members of that group.

           The members of group-ID-num are those who share that group
           number in /etc/passwd, or who are listed as members of that
           group-id-num in /etc/group.

           Newgrp without an argument changes the group identification
           to the user's initial log-in group as recorded in the
           password file.

           An initial - flag causes the environment to be changed to
           the one that would be expected if the user actually logged
           in again.

           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 /etc/group as being a member of
           that group.

           When most users log in, they are members of the group named
           other.

      FILES
           /etc/group
           /etc/passwd

      SEE ALSO
           login(1), group(4).

      BUGS
           There is no convenient way to enter a password into
           /etc/group.  Use of group passwords is not encouraged,
           because, by their very nature, they encourage poor security
           practices.  Group passwords may disappear in the future.










      Page 1                                          (73 A2 02MT REV1)



