Annotation of 43BSDTahoe/man/man3/initgroups.3, revision 1.1.1.1

1.1       root        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: .\"
                      5: .\"    @(#)initgroups.3        6.2 (Berkeley) 5/12/86
                      6: .\"
                      7: .TH INITGROUPS 3 "May 12, 1986"
                      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 .

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.