initgroups man page on Tru64

Man page or keyword search:  
man Server   12896 pages
apropos Keyword Search (all sections)
Output format
Tru64 logo
[printable version]

initgroups(3)							 initgroups(3)

NAME
       initgroups - Initialize concurrent group set

SYNOPSIS
       int initgroups(
	       char *user,
	       gid_t base_gid );

LIBRARY
       Standard C Library (libc)

PARAMETERS
       Specifies  the user whose groups are to be used to initialize the group
       set.  Specifies an additional group to include in the group set.

DESCRIPTION
       The initgroups() function reads the defined  group  membership  of  the
       specified user and sets the concurrent group set of the current process
       to that value. The base_gid parameter is always included in the concurā€
       rent group set, and is normally the principal user's group. If the user
       is in more than NGROUPS_MAX groups, only NGROUPS_MAX  groups  are  set,
       including the base_gid group.

RETURN VALUES
       Upon successful completion, the initgroups() function returns 0 (zero).
       If the initgroups() function fails, 1 is returned and errno is  set  to
       indicate the error.

ERRORS
       If  the	initgroups() function fails, errno may be set to the following
       value: The calling process does not have the appropriate	 privilege  in
       its current effective privilege set.

CAUTION
       The  initgroups() function uses the sia_get_groups() function to set up
       the group array. If the program that invokes initgroups() uses  any  of
       these  functions, then calling initgroups() overwrites the static group
       structure.

SEE ALSO
       Functions: getgroups(2), setgroups(2), getgid(2) sia_get_groups(3)

       Commands: groups(1)

								 initgroups(3)
[top]
                             _         _         _ 
                            | |       | |       | |     
                            | |       | |       | |     
                         __ | | __ __ | | __ __ | | __  
                         \ \| |/ / \ \| |/ / \ \| |/ /  
                          \ \ / /   \ \ / /   \ \ / /   
                           \   /     \   /     \   /    
                            \_/       \_/       \_/ 
More information is available in HTML format for server Tru64

List of man pages available for Tru64

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net