GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  SETGROUPS (2)

NAME

setgroups - set group access list

CONTENTS

Library
Synopsis
Description
Return Values
Errors
See Also
History

LIBRARY


.Lb libc

SYNOPSIS


.In sys/param.h
.In unistd.h int setgroups int ngroups const gid_t *gidset

DESCRIPTION

The setgroups system call sets the group access list of the current user process according to the array gidset. The ngroups argument indicates the number of entries in the array and must be no more than {NGROUPS_MAX}+1.

Only the super-user may set a new group list.

RETURN VALUES


.Rv -std setgroups

ERRORS

The setgroups system call will fail if:
[EPERM]
  The caller is not the super-user.
[EINVAL]
  The number specified in the ngroups argument is larger than the {NGROUPS_MAX}+1 limit.
[EFAULT]
  The address specified for gidset is outside the process address space.

SEE ALSO

getgroups(2), initgroups(3)

HISTORY

The setgroups system call appeared in BSD 4.2 .
Search for    or go to Top of page |  Section 2 |  Main Index


Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.