#include <sys/types.h> #include <grp.h> int initgroups(const char *userID, gid_t groupID);
initgroupsinitializes the supplementary group ID list for a process to a user's supplementary group list. The user is identified by the
userIDargument, which is a 1 to 8 character, null-terminated, MVS user ID. The group ID specified by the
groupIDargument is added to the supplementary list for the process.
Note: This function can only be called by a superuser.
0if successful and a
Copyright (c) 1998 SAS Institute Inc. Cary, NC, USA. All rights reserved.