Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ newgrp(1) — GL2 W2.5

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

login(1)

group(4)

NEWGRP(1)  —  Silicon Graphics

NAME

newgrp − log in to a new group

SYNOPSIS

newgrp [−] [ group ]

DESCRIPTION

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

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

EXAMPLE

newgrp grpnam

would set the user’s group ID to that of the group named “grpnam”. 

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. 

Version 2.5  —  April 22, 1987

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