BSD 4_2 development
[unix-history] / usr / man / man3 / initgroups.3x
CommitLineData
b55bd7ed
C
1.TH INITGROUPS 3X "25 February 1983"
2.UC 4
3.SH NAME
4initgroups \- initialize group access list
5.SH SYNOPSIS
6.B initgroups(name, basegid)
7.br
8.B char *name;
9.br
10.B int basegid;
11.SH DESCRIPTION
12.I Initgroups
13reads through the group file and sets up,
14using the
15.IR setgroups (2)
16call, the group access list for the user
17specified in
18.IR name .
19The
20.I basegid
21is automatically included in the groups list.
22Typically this value is given as
23the group number from the password file.
24.SH FILES
25/etc/group
26.SH SEE ALSO
27setgroups(2)
28.SH DIAGNOSTICS
29.I Initgroups
30returns \-1 if it was not invoked by the super-user.
31.SH BUGS
32.I Initgroups
33uses the routines based on
34.IR getgrent (3).
35If the invoking program uses any of these routines,
36the group structure will
37be overwritten in the call to
38.IR initgroups .
39.PP
40Noone seems to keep /etc/group up to date.