newgrp — Log In to a New Group

Synopsis

/usr/bin/newgrp [- | -l][group] 
sh
newgrp [argument] 
ksh
* 
newgrp [argument...] 

Description

Use the newgrp command to log in to a new group by changing your real and effective group ID. You remain logged in and the current directory is unchanged. The execution of newgrp always replaces the current shell with a new shell even if the command terminates with an error (unknown group).

Any variable that is not exported is reset to null or its default value. Exported variables retain their values. System variables (such as PS1, PS2, PATH, MAIL, and HOME) are reset to default values unless they have been exported by the system or the user. For example, when you have a primary prompt string (PS1) other ...

Get Solaris™ 7 Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.