Commit | Line | Data |
---|---|---|
22e59cfd KM |
1 | .\" Copyright (c) 1983 Regents of the University of California. |
2 | .\" All rights reserved. The Berkeley software License Agreement | |
3 | .\" specifies the terms and conditions for redistribution. | |
4 | .\" | |
0609943c | 5 | .\" @(#)initgroups.3 6.2 (Berkeley) %G% |
22e59cfd | 6 | .\" |
0609943c | 7 | .TH INITGROUPS 3 "" |
22e59cfd KM |
8 | .UC 5 |
9 | .SH NAME | |
10 | initgroups \- initialize group access list | |
11 | .SH SYNOPSIS | |
12 | .B initgroups(name, basegid) | |
13 | .br | |
14 | .B char *name; | |
15 | .br | |
16 | .B int basegid; | |
17 | .SH DESCRIPTION | |
18 | .I Initgroups | |
19 | reads through the group file and sets up, | |
20 | using the | |
21 | .IR setgroups (2) | |
22 | call, the group access list for the user | |
23 | specified in | |
24 | .IR name . | |
25 | The | |
26 | .I basegid | |
27 | is automatically included in the groups list. | |
28 | Typically this value is given as | |
29 | the group number from the password file. | |
30 | .SH FILES | |
31 | /etc/group | |
32 | .SH SEE ALSO | |
33 | setgroups(2) | |
34 | .SH DIAGNOSTICS | |
35 | .I Initgroups | |
36 | returns \-1 if it was not invoked by the super-user. | |
37 | .SH BUGS | |
38 | .I Initgroups | |
39 | uses the routines based on | |
40 | .IR getgrent (3). | |
41 | If the invoking program uses any of these routines, | |
42 | the group structure will | |
43 | be overwritten in the call to | |
44 | .IR initgroups . |