Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ newgrp(C) — Xenix 2.3.4

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

login(M)

group(M)



     NEWGRP(C)                XENIX System V                 NEWGRP(C)



     Name
          newgrp - Logs user into a new group.

     Syntax
          newgrp [ group ]

     Description
          newgrp changes the group identification of its caller.  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.

          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.

          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
          group.

     Files
          /etc/group

          /etc/passwd

     See Also
          login(M), group(M)

     Notes
          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.  Shell
          variables are not preserved when invoking this command
          unless they are explicitly exported.  (See sh(C).)















     Page 1                                           (printed 8/7/87)



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026