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