public inbox for libc-help@sourceware.org
 help / color / mirror / Atom feed
From: Paul Smith <paul@mad-scientist.net>
To: Peng Yu <pengyu.ut@gmail.com>, libc-help@sourceware.org
Subject: Re: definitions of uid and euid
Date: Tue, 02 Feb 2021 12:54:51 -0500	[thread overview]
Message-ID: <889aa05b332f3da4db7b5e3159bd5241f35007c7.camel@mad-scientist.net> (raw)
In-Reply-To: <CABrM6wkBrkz1DiyBWAqK=Nqj8e3=bs=NurR-eK7RF4Y6Ob_idA@mail.gmail.com>

On Tue, 2021-02-02 at 11:04 -0600, Peng Yu via Libc-help wrote:
> Could anybody explain the definitions of uid and euid, and provide a
> minimum working example demonstrating when they are different?

Google is helpful here I think; this is a UNIX/POSIX operating system
thing not a libc thing.

For example this answer from the first hit I got seems informative and
pretty accurate

https://stackoverflow.com/a/32456814/939557

and other answers to that question go into more details.


  reply	other threads:[~2021-02-02 17:54 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-02 17:04 Peng Yu
2021-02-02 17:54 ` Paul Smith [this message]
2021-02-03  1:49 ` Jeffrey Walton
2021-02-03  3:24   ` Peng Yu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=889aa05b332f3da4db7b5e3159bd5241f35007c7.camel@mad-scientist.net \
    --to=paul@mad-scientist.net \
    --cc=libc-help@sourceware.org \
    --cc=pengyu.ut@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).