setgroups man page on Tru64

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

setgroups(2)							  setgroups(2)

NAME
       setgroups - Set the group access list

SYNOPSIS
       #include <unistd.h> #include <sys/types.h>

       int setgroups(
	       int gidsetsize,
	       gid_t grouplist[] );

PARAMETERS
       Indicates  the  number  of entries in the array pointed to by the grou‐
       plist parameter. This number must not be more than  NGROUPS_MAX,	 which
       is  defined  in the <sys/syslimits.h> header file.  Points to the array
       that contains the group access list of the current user	process.  Ele‐
       ment grouplist[0] becomes the new effective group ID.

DESCRIPTION
       The setgroups() function sets the group access list of the current user
       process according to the array pointed to by the grouplist parameter.

       This function fails unless the invoking process	has  superuser	privi‐
       lege.

RETURN VALUES
       Upon  successful	 completion,  a value of 0 (zero) is returned.	If the
       setgroups() function fails, a value of -1 is returned and errno is  set
       to indicate the error.

ERRORS
       If  the setgroups() function fails, errno may be set to one of the fol‐
       lowing values: The caller does not have the appropriate	system	privi‐
       lege.	The   value  of	 the  gidsetsize  parameter  is	 greater  than
       NGROUPS_MAX or an entry in the grouplist parameter is not a valid group
       ID.   The  grouplist  parameter points outside of the allocated address
       space of the process.

SEE ALSO
       Functions: getgroups(2), initgroups(3)

								  setgroups(2)
[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