Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

getgid(2) [linux man page]

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

NAME
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 http://www.kernel.org/doc/man-pages/. Linux 1993-07-23 GETGID(2)

Check Out this Related Man Page

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

NAME
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. ERRORS
These functions are always successful. CONFORMING TO
POSIX.1-2001, 4.3BSD. NOTES
The original Linux getgid() and getegid() system calls supported only 16-bit group IDs. Subsequently, Linux 2.4 added getgid32() and gete- gid32(), supporting 32-bit IDs. The glibc getgid() and getegid() wrapper functions transparently deal with the variations across kernel versions. SEE ALSO
getresgid(2), setgid(2), setregid(2), credentials(7) COLOPHON
This page is part of release 3.53 of the Linux man-pages project. A description of the project, and information about reporting bugs, can be found at http://www.kernel.org/doc/man-pages/. Linux 2010-11-22 GETGID(2)
Man Page

12 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to check if there is only one row in the file?

How can I check if there is only one row in the file? If there are more than one rows, I need to send an email and if there is only one row, do not do anything. Thanks in anticipation (7 Replies)
Discussion started by: er_ashu
7 Replies

2. Shell Programming and Scripting

How command is executed

as i have been new to unix can any one can tell,when be type a command on unix shell what processing it goes through before execution of it (1 Reply)
Discussion started by: shashank1311
1 Replies

3. SCO

SLD: Failed to start the PMD Connection thread. (PM_THREAD_FAILED_TO_START).

Hello, I have a client with an 18 year old SCO Openserver 5.0.5 server. They can't find their installation media. They are experiencing an error at login: *LOGIN: ERROR- Failed to initialize policy manager. (IFOR_PM_FATAL) The status from the policy manager daemon (PMD -... (10 Replies)
Discussion started by: brhunt
10 Replies

4. 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

5. 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

6. 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

7. Shell Programming and Scripting

shell script getting stopped at the middle.

I have created a shell scrit to run the informatica workflows sequentially.In the script i am executing 7 workflows sequentially after running 4 workflows the scrpt getting stop and it is not continuing next step evn it is updating logs.4th workflow will take more time to finish is that making... (1 Reply)
Discussion started by: katakamvivek
1 Replies

8. Shell Programming and Scripting

Can't submit a form.

hello my script is submitting POST-data to a site (its not my first script, i've done these before many times (include parsing scripts) but this one is tough) so the problem is i'm submitting a form with firefox and in firebug i see WHAT exactly i'm submitting then when i do EXACTLY the... (28 Replies)
Discussion started by: tip78
28 Replies

9. Solaris

Rpcbind service not starting

Hello all, I have read just about every rpcbind not starting thread and article on the internet it seems, but I have not found a solution to my problem as of yet. I have a solaris 10 server that has been running with no problems for a while. The other day it crashed and would not boot to the gui... (2 Replies)
Discussion started by: Madrox72
2 Replies

10. UNIX for Advanced & Expert Users

unable to understand the output of TRUSS command

Hi, I am trying to set ulimit for soft stack unlimited, but this is not taking effect, after tracing the ulimit -a unlimited command, the below output was generated, which i am unable to comprehend. Could any one help me with this? prcbap1-r10prod: truss -d ulimit -s unlimited Tue Dec 30... (2 Replies)
Discussion started by: NasirAbbasi
2 Replies

11. AIX

VI command not working

Hello all, I've got a production system that the DBA complained that the vi command was no longer working for the oracle service account for a particular instance. When I logged in as myself, I noticed that it wasn't working for my user either. When invoked, it just returns to the prompt with an... (21 Replies)
Discussion started by: ZekesGarage
21 Replies

12. 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