blob: e77a203079764e4071f1f8cfb21e004f1e1c993a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
.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 .
|