File:  [Research Unix] / researchv10dc / man / adm / man1 / newgrp.1
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:34 2018 UTC (8 years, 1 month ago) by root
Branches: belllabs, MAIN
CVS tags: researchv10, HEAD
researchv10 Dan Cross

.TH NEWGRP 1
.CT 1 proc_man secur
.SH NAME
newgrp \(mi change to a new group
.SH SYNOPSIS
.B newgrp
.I group
[
.I command
[
.I arg ...
] ]
.SH DESCRIPTION
.I Newgrp
runs a
.I command
with the (real and effective) groupid temporarily set to 
.I group.
If no command is given, the user's shell (see
.IR passwd (5))
is executed.
.PP
A password is demanded if the group has
a password and the user does not.
.SH EXAMPLES
.TP
.L
exec newgrp bin
Restart the shell with a different groupid.
.SH FILES
.F /etc/group
.br
.F /etc/passwd
.SH "SEE ALSO"
.IR login (8), 
.IR getuid (2)
.SH BUGS
On other systems,
.I newgrp
is built into the shell.
Here it will spawn a new shell unless invoked with
.BR exec .

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.