Manual Page Result
0
Command: newgrp | Section: 1 | Source: UNIX v10 | File: newgrp.1
NEWGRP(1) General Commands Manual NEWGRP(1)
NAME
newgrp - change to a new group
SYNOPSIS
newgrp group [ command [ arg ... ] ]
DESCRIPTION
Newgrp runs a command with the (real and effective) groupid temporarily
set to group. If no command is given, the user's shell (see passwd(5))
is executed.
A password is demanded if the group has a password and the user does
not.
EXAMPLES
exec newgrp bin
Restart the shell with a different groupid.
FILES
SEE ALSO
login(8), getuid(2)
BUGS
On other systems, newgrp is built into the shell. Here it will spawn a
new shell unless invoked with exec.
NEWGRP(1)