public inbox for libc-help@sourceware.org
 help / color / mirror / Atom feed
* definitions of uid and euid
@ 2021-02-02 17:04 Peng Yu
  2021-02-02 17:54 ` Paul Smith
  2021-02-03  1:49 ` Jeffrey Walton
  0 siblings, 2 replies; 4+ messages in thread
From: Peng Yu @ 2021-02-02 17:04 UTC (permalink / raw)
  To: libc-help

Hi,

`man getuid` says the following without explaining what real user ID
and effective user ID are.

- getuid() returns the real user ID of the calling process.
- geteuid() returns the effective user ID of the calling process.

Could anybody explain the definitions of uid and euid, and provide a
minimum working example demonstrating when they are different? Thanks.

-- 
Regards,
Peng

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-02-03  3:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-02 17:04 definitions of uid and euid Peng Yu
2021-02-02 17:54 ` Paul Smith
2021-02-03  1:49 ` Jeffrey Walton
2021-02-03  3:24   ` Peng Yu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).