lpd is no longer an example of a DAEMON facility
[unix-history] / usr / src / lib / libc / gen / initgroups.3
CommitLineData
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.\"
c77a365c 5.\" @(#)initgroups.3 6.1 (Berkeley) %G%
22e59cfd 6.\"
c77a365c 7.TH INITGROUPS 3X ""
22e59cfd
KM
8.UC 5
9.SH NAME
10initgroups \- 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
19reads through the group file and sets up,
20using the
21.IR setgroups (2)
22call, the group access list for the user
23specified in
24.IR name .
25The
26.I basegid
27is automatically included in the groups list.
28Typically this value is given as
29the group number from the password file.
30.SH FILES
31/etc/group
32.SH SEE ALSO
33setgroups(2)
34.SH DIAGNOSTICS
35.I Initgroups
36returns \-1 if it was not invoked by the super-user.
37.SH BUGS
38.I Initgroups
39uses the routines based on
40.IR getgrent (3).
41If the invoking program uses any of these routines,
42the group structure will
43be overwritten in the call to
44.IR initgroups .
45.PP
46Noone seems to keep /etc/group up to date.