home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Fish 2
/
goldfish_vol2_cd1.bin
/
gnu
/
man
/
cat3
/
initgroups.0
< prev
next >
Wrap
Text File
|
1993-12-07
|
1KB
|
67 lines
INITGROUPS(3) UNIX Programmer's Manual INITGROUPS(3)
NNAAMMEE
iinniittggrroouuppss - initialize group access list
SSYYNNOOPPSSIISS
##iinncclluuddee <<uunniissttdd..hh>>
_i_n_t
iinniittggrroouuppss(_c_o_n_s_t _c_h_a_r _*_n_a_m_e, _i_n_t _b_a_s_e_g_i_d)
DDEESSCCRRIIPPTTIIOONN
The iinniittggrroouuppss() function reads through the group file and sets up, using
the setgroups(2) call, the group access list for the user specified in
_n_a_m_e. The _b_a_s_e_g_i_d is automatically included in the groups list. Typical
ly this value is given as the group number from the password file.
RREETTUURRNN VVAALLUUEESS
The iinniittggrroouuppss() function returns -1 if it was not invoked by the super
user.
FFIILLEESS
/etc/group
SSEEEE AALLSSOO
setgroups(2)
HHIISSTTOORRYY
The iinniittggrroouuppss function appeared in 4.2BSD.
BBUUGGSS
The iinniittggrroouuppss() function uses the routines based on getgrent(3). If the
invoking program uses any of these routines, the group structure will be
overwritten in the call to iinniittggrroouuppss().
4.2 Berkeley Distribution April 19, 1991 1