GROUP_MEMBER(3) Linux Programmer's Manual GROUP_MEMBER(3)NAME
group_member - test whether a process is in a group
SYNOPSIS
#include <unistd.h>
int group_member(gid_t gid);
Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
group_member(): _GNU_SOURCE
DESCRIPTION
The group_member() function tests whether any of the caller's supplementary group IDs (as returned by getgroups(2)) matches gid.
RETURN VALUE
The group_member() function returns nonzero if any of the caller's supplementary group IDs matches gid, and zero otherwise.
CONFORMING TO
This function is a nonstandard GNU extension.
SEE ALSO getgid(2), getgroups(2), getgrouplist(3), group(5)COLOPHON
This page is part of release 4.15 of the Linux man-pages project. A description of the project, information about reporting bugs, and the
latest version of this page, can be found at https://www.kernel.org/doc/man-pages/.
GNU 2014-03-30 GROUP_MEMBER(3)
Check Out this Related Man Page
GROUP_MEMBER(3) Linux Programmer's Manual GROUP_MEMBER(3)NAME
group_member - test whether a process is in a group
SYNOPSIS
#include <unistd.h>
int group_member(gid_t gid);
Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
group_member(): _GNU_SOURCE
DESCRIPTION
The group_member() function tests whether any of the caller's supplementary group IDs (as returned by getgroups(2)) matches gid.
RETURN VALUE
The group_member() function returns nonzero if any of the caller's supplementary group IDs matches gid, and zero otherwise.
CONFORMING TO
This function is a nonstandard GNU extension.
SEE ALSO getgid(2), getgroups(2), getgrouplist(3), group(5)COLOPHON
This page is part of release 4.15 of the Linux man-pages project. A description of the project, information about reporting bugs, and the
latest version of this page, can be found at https://www.kernel.org/doc/man-pages/.
GNU 2014-03-30 GROUP_MEMBER(3)
As part of a NIS implementation, (I think) I want to create a group (in /etc/group) that has users that do not exist on the target machine.
What effect will this have? Will it cause any problems?
Thanks,
Gary Cooper (1 Reply)
On Solaris, a user is limited to being a member of a maximum of 16 groups. Could someone tell me where this limit comes from, i.e. is it NIS, or Solaris, or NFS that is imposing this limit?
What is the work-around to remove this limitation? (4 Replies)
Hello all,
I have a group - grpchg - which has 2 members
1) grpmem1
2) chgmem1
The first member creates a dir and gives write permission to itself and for the group - and reads like this:
drwxrwsr-x
However the other member is unable to create files in the dir. I even gave drwxrwxr-x... (1 Reply)
Is there a command to get a list of group members? Something similar to the groups command, but instead of passing a username and returning groups, you pass it a groupname, and it returns members?
It is difficult to do it manually because the group membership information is split across two... (5 Replies)
Hey
I'm writing a script that creates some processes,and some scripts which kill those processes.
the question is Simply:
How can I allow group members to be able to kill processes created by other member at the same group?
I need your help as soon as possible
Thanks for your help in... (4 Replies)
Hi,
I already gone through with old post regarding listing the group members and tried the command
getenv group other
the result is
other::1:root
i listed my part of the /etc/passwd file below
test1:x:100:1::/home/test1:/bin/sh
test2:x:101:1::/home/test2:/bin/ksh... (7 Replies)
Hello,
I am currently a little bit lost with my new shell-script.
I am trying to output the results of the "id"-command as a "one per line" statement. For example:
I have the user "test" with the group-memberships "group1, group2, group3". When I enter "id test" it will show me the output... (2 Replies)
trying to implement authz to a webpage using require ldap-group. It works, except I need to do apachectl restart before the server will observe an add or a delete to the group.
Seems like apache is acquiring the group membership at startup & caching it.
It's a static group.
I have apache... (0 Replies)