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
GROUPMEMBER(9) FreeBSD Kernel Developer's Manual GROUPMEMBER(9)

groupmemberchecks if credentials mandate some group membership

#include <sys/param.h>
#include <sys/ucred.h>

bool
groupmember(gid_t gid, const struct ucred *cred);

bool
realgroupmember(gid_t gid, const struct ucred *cred);

The () function checks if credentials cred indicate that the associated subject or object is a member of the group designated by the group ID gid.

Considered groups in cred are the effective and supplementary groups. The real group is not taken into account.

Function () works the same except that it considers instead the real and supplementary groups, and not the effective one.

The groupmember() and realgroupmember() functions return true if the given credentials indicate membership of the group gid, or false otherwise.

getgroups(2), setgroups(2)

This manual page was initially written by Chad David <davidc@acns.ab.ca> and was revised by Olivier Certner <olce.freebsd@certner.fr>.

October 31, 2024 FreeBSD 14.3-RELEASE

Search for    or go to Top of page |  Section 9 |  Main Index

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