4.3BSD-Reno/share/man/cat3/initgroups.0

Compare this file to the similar file:
Show the results in this format:




INITGROUPS(3)		      1986		    INITGROUPS(3)



NNAAMMEE
     initgroups - initialize group access list

SSYYNNOOPPSSIISS
     iinniittggrroouuppss((nnaammee,, bbaasseeggiidd))
     cchhaarr **nnaammee;;
     iinntt bbaasseeggiidd;;

DDEESSCCRRIIPPTTIIOONN
     _I_n_i_t_g_r_o_u_p_s reads through the group file and sets up, using
     the _s_e_t_g_r_o_u_p_s(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.  Typically this value is given as the group
     number from the password file.

FFIILLEESS
     /etc/group

SSEEEE AALLSSOO
     setgroups(2)

DDIIAAGGNNOOSSTTIICCSS
     _I_n_i_t_g_r_o_u_p_s returns -1 if it was not invoked by the super-
     user.

BBUUGGSS
     _I_n_i_t_g_r_o_u_p_s uses the routines based on _g_e_t_g_r_e_n_t(3).  If the
     invoking program uses any of these routines, the group
     structure will be overwritten in the call to _i_n_i_t_g_r_o_u_p_s.


























Printed 7/27/90                May				1