version 1, including all changes.
.
Rev |
Author |
# |
Line |
1 |
perry |
1 |
NEWGRP |
|
|
2 |
!!!NEWGRP |
|
|
3 |
NAME |
|
|
4 |
SYNOPSIS |
|
|
5 |
DESCRIPTION |
|
|
6 |
CAVEATS |
|
|
7 |
FILES |
|
|
8 |
SEE ALSO |
|
|
9 |
AUTHOR |
|
|
10 |
---- |
|
|
11 |
!!NAME |
|
|
12 |
|
|
|
13 |
|
|
|
14 |
newgrp - Change group ID |
|
|
15 |
sg - Execute command as different group ID |
|
|
16 |
!!SYNOPSIS |
|
|
17 |
|
|
|
18 |
|
|
|
19 |
__newgrp__ [[__-__] [[''group'']__ |
|
|
20 |
sg__ [[__-__] [[''group'' [[[[__-c__] |
|
|
21 |
''command'']] |
|
|
22 |
!!DESCRIPTION |
|
|
23 |
|
|
|
24 |
|
|
|
25 |
__newgrp__ is used to change the current group ID during |
|
|
26 |
a login session. If the optional __-__ flag is given, the |
|
|
27 |
user's environment will be reinitialized as though the user |
|
|
28 |
had logged in, otherwise the current environment, including |
|
|
29 |
current working directory, remains unchanged. |
|
|
30 |
|
|
|
31 |
|
|
|
32 |
__newgrp__ changes the current real group ID to the named |
|
|
33 |
group, or to the default group listed in ''/etc/passwd'' |
|
|
34 |
if no group name is given. The user will be prompted for a |
|
|
35 |
password if they do not have a password and the group does, |
|
|
36 |
or if the user is not listed as a member and the group has a |
|
|
37 |
password. The user will be denied access if the group |
|
|
38 |
password is empty and the user is not listed as a |
|
|
39 |
member. |
|
|
40 |
|
|
|
41 |
|
|
|
42 |
The __sg__ command works similiar to __newgrp__ but |
|
|
43 |
does not replace the user's shell, so upon exit from a |
|
|
44 |
__sg__ command, you are returned to your previous group |
|
|
45 |
ID. __sg__ also accepts a command. The command will be |
|
|
46 |
executed with the Bourne shell and must be enclosed in |
|
|
47 |
quotes. |
|
|
48 |
!!CAVEATS |
|
|
49 |
|
|
|
50 |
|
|
|
51 |
This version of __newgrp__ has many compilation options, |
|
|
52 |
only some of which may be in use at any particular |
|
|
53 |
site. |
|
|
54 |
!!FILES |
|
|
55 |
|
|
|
56 |
|
|
|
57 |
/etc/passwd - user account information |
|
|
58 |
/etc/group - group information |
|
|
59 |
!!SEE ALSO |
|
|
60 |
|
|
|
61 |
|
|
|
62 |
login(1), id(1), su(1) |
|
|
63 |
!!AUTHOR |
|
|
64 |
|
|
|
65 |
|
|
|
66 |
Julianne Frances Haugh (jfh@austin.ibm.com) |
|
|
67 |
---- |