GETGID(2) BSD System Calls Manual GETGID(2)NAME
getgid, getegid -- get group process identification
Standard C Library (libc, -lc)
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-group-id of the calling process.
The getgid() and getegid() functions are always successful, and no return value is reserved to indicate an error.
SEE ALSO getuid(2), setgid(2), setgroups(2), setregid(2)STANDARDS
getgid() and getegid() conform to ISO/IEC 9945-1:1990 (``POSIX.1'').
The getgid() function appeared in Version 4 AT&T UNIX.
BSD April 3, 2010 BSD
Check Out this Related Man Page
getgid(2) System Calls Manual getgid(2)NAME
getgid, getegid - Gets the process group ID
gid_t getgid (void);
gid_t getegid (void);
Application developers may want to specify an #include statement for <sys/types.h> before the one for <unistd.h> if programs are being
developed for multiple platforms. The additional #include statement is not required on Tru64 UNIX systems or by ISO or X/Open standards,
but may be required on other vendors' systems that conform to these standards.
Interfaces documented on this reference page conform to industry standards as follows:
getgid(), getegid(): POSIX.1, XPG4, XPG4-UNIX
Refer to the standards(5) reference page for more information about industry standards and associated tags.
The getgid() function returns the real group ID of the calling process.
The getegid() function returns the effective group ID of the calling process.
The real group ID is specified at login time. The effective group ID is more transient, and determines additional access permission during
execution of a ``set-group-ID'' process. It is for such processes that the getgid() function is most useful.
The getgid() and getegid() functions return the requested group ID. They are always successful.
Functions: getgroups(2), initgroups(3), setgroups(2), setregid(2)
Standards: standards(5) delim off
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)
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)
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)
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)
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)
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)
Someone, please help on this issue:-
Note : for security reason i didn't mention hostnames and ips.
polling server every 1024 s
Ntpstat showing unsynchronised.
... (29 Replies)