*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: groupmember | Section: 9 | Source: FreeBSD | File: groupmember.9.gz
GROUPMEMBER(9) FreeBSD Kernel Developer's Manual GROUPMEMBER(9) NAME groupmember - checks if credentials mandate some group membership SYNOPSIS #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); DESCRIPTION The groupmember() 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 realgroupmember() works the same except that it considers instead the real and supplementary groups, and not the effective one. RETURN VALUES The groupmember() and realgroupmember() functions return true if the given credentials indicate membership of the group gid, or false otherwise. SEE ALSO getgroups(2), setgroups(2) AUTHORS This manual page was initially written by Chad David <[email protected]> and was revised by Olivier Certner <[email protected]>. FreeBSD 14.1-RELEASE-p8 October 31, 2024 FreeBSD 14.1-RELEASE-p8

Navigation Options