Commit | Line | Data |
---|---|---|
ed6becc3 KM |
1 | .\" @(#)newgrp.1 4.1 (Berkeley) %G% |
2 | .\" | |
3 | .TH NEWGRP 1 | |
4 | .AT 3 | |
5 | .SH NAME | |
6 | newgrp \- log in to a new group | |
7 | .SH SYNOPSIS | |
8 | .B newgrp | |
9 | group | |
10 | .SH DESCRIPTION | |
11 | .I Newgrp | |
12 | changes the group identification of its caller, | |
13 | analogously to | |
14 | .IR login (1). | |
15 | The same person remains logged in, | |
16 | and the current directory is unchanged, | |
17 | but calculations of access permissions to files are | |
18 | performed with respect to the | |
19 | new group ID. | |
20 | .PP | |
21 | A password is demanded if the group has | |
22 | a password and the user himself does not. | |
23 | .PP | |
24 | .I Newgrp | |
25 | is known to the shell, which executes it directly without a fork. | |
26 | .SH FILES | |
27 | /etc/group, /etc/passwd | |
28 | .SH "SEE ALSO" | |
29 | login(1), group(5) | |
30 | .SH BUGS |