Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

group_member(3) [ultrix 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)

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)
Man Page

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

What hapens if a group member doesn't exist?

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)
Discussion started by: Gary Cooper
1 Replies

2. Solaris

Group membership limit

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)
Discussion started by: son_t
4 Replies

3. UNIX for Dummies Questions & Answers

Touch fails for group member

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)
Discussion started by: mohanprabu
1 Replies

4. Shell Programming and Scripting

How to get a list of group members?

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)
Discussion started by: akbar
5 Replies

5. AIX

How to allow group members to kill process?

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)
Discussion started by: The Dark Knight
4 Replies

6. Solaris

How to list group members in solaris 9

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)
Discussion started by: vr_mari
7 Replies

7. Shell Programming and Scripting

ID - output group-memberships one per line

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)
Discussion started by: henryford
2 Replies

8. Web Development

Getting apache to see a LDAP group membership change

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)
Discussion started by: maraixadm
0 Replies