Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

getegid(2) [osx man page]

GETGID(2)						      BSD System Calls Manual							 GETGID(2)

getegid, getgid -- get group process identification SYNOPSIS
#include <unistd.h> gid_t getegid(void); gid_t getgid(void); DESCRIPTION
The getgid() function returns the real group ID of the calling process, getegid() returns the effective group ID of the calling process. The real group ID is specified at login time. The real group ID is the group of the user who invoked the program. As the effective group ID gives the process additional permissions dur- ing the execution of ``set-group-ID'' mode processes, getgid() is used to determine the real-user-id of the calling process. ERRORS
The getgid() and getegid() functions are always successful; no return value is reserved to indicate an error. LEGACY SYNOPSIS
#include <sys/types.h> #include <unistd.h> The include file <sys/types.h> is necessary. SEE ALSO
getuid(2), setregid(2), setgid(3) STANDARDS
Getgid() and getegid() conform to IEEE Std 1003.1-1988 (``POSIX.1''). 4.2 Berkeley Distribution June 4, 1993 4.2 Berkeley Distribution

Check Out this Related Man Page

GETGID(2)						     Linux Programmer's Manual							 GETGID(2)

getgid, getegid - get group identity SYNOPSIS
#include <unistd.h> #include <sys/types.h> gid_t getgid(void); gid_t getegid(void); DESCRIPTION
getgid() returns the real group ID of the calling process. getegid() returns the effective group ID of the calling process. When a normal program is executed, the effective and real group ID of the process are set to the group ID of the user executing the file. When a set ID program is executed the real group ID is set to the group of the calling user and the effective user ID corresponds to the set group ID bit on the file being executed. ERRORS
These functions are always successful. CONFORMING TO
POSIX.1-2001, 4.3BSD. SEE ALSO
getresgid(2), setgid(2), setregid(2), credentials(7) COLOPHON
This page is part of release 3.27 of the Linux man-pages project. A description of the project, and information about reporting bugs, can be found at Linux 1993-07-23 GETGID(2)
Man Page

7 More Discussions You Might Find Interesting

1. Solaris

Need help in building gcc on solaris.

We are moving from old solaris to new version of solaris. I have copied the gcc compiler installed on old server to new solaris server. But just copying didn't work. So I am trying to build it on the new server. The server version is sailfish@st-kvar02 -> uname -a SunOS st-kvar02 5.10... (7 Replies)
Discussion started by: nalina.hv
7 Replies

2. Debian

Trying to native compile Debian Dialog

Hi, tried to native compile Debian Dialog as ncurses-dev is available. I am trying native compile Debian Dialog using gcc on Linux embedded router. What's wrong, as running than make I get errors. Mayby this line in the log file is an exaplanation to a problem ? " checking if we have... (1 Reply)
Discussion started by: jack2
1 Replies

3. Cybersecurity

the SUID of lpq

Hello My system is Debian-503-amd64. After I installed the "lpr" package, I found that some files with SUID bit come from this package. As: ls -l /usr/bin/lp* .... -rwsr-sr-x 1 root lp 31800 2008-05-20 /usr/bin/lpq -rwsr-sr-x 1 root lp 28504 2008-05-20 /usr/bin/lpr -rwsr-sr-x 1... (1 Reply)
Discussion started by: ZR_Lang
1 Replies

4. UNIX for Dummies Questions & Answers

[Solved] effective user id upon exec

Hello all. Despite the exec man page, the exec system call seems to turn my effective-user-id into my real-user-id. I coded and compiled 2 very simple c programs as user 1 (uid=501) The first one (A) prints real and effective user IDs and then execs the second one (B), which in turn prints... (7 Replies)
Discussion started by: oviv
7 Replies

5. Linux

Sendmail takes too long to start and the host is unable to send emails

Hello All, Sendmail takes too long to start and the host is unable to send emails, below are the steps followed, Please let me know if I'm missing anything, is there a debug mode for mailx? # time service sendmail restart Shutting down sm-client: Shutting... (6 Replies)
Discussion started by: lovesaikrishna
6 Replies

6. Shell Programming and Scripting

Moving XML tag/contents after specific XML tag within same file

Hi Forum. I have an XML file with the following requirement to move the <AdditionalAccountHolders> tag and its content right after the <accountHolderName> tag within the same file but I'm not sure how to accomplish this through a Unix script. Any feedback will be greatly appreciated. ... (19 Replies)
Discussion started by: pchang
19 Replies

7. UNIX for Beginners Questions & Answers

NTP synchronised problem in our Centos 7.6 node

Someone, please help on this issue:- Note : for security reason i didn't mention hostnames and ips. ============================================================================== # ntpstat unsynchronised polling server every 1024 s Ntpstat showing unsynchronised. ... (29 Replies)
Discussion started by: shanmugaraj
29 Replies

Featured Tech Videos