Article View: comp.std.unix
Article #314Re: UIDs and GIDs
From: Dominic Dunlop
Date: Fri, 29 Jun 1990 09:47
Date: Fri, 29 Jun 1990 09:47
31 lines
2083 bytes
2083 bytes
From: Dominic Dunlop <domo@tsa.co.uk>
In article <743@longway.TIC.COM> Mark Brown (mbrown@osf.org) writes:
>In 1003.1, "User ID" is defined as a positive integer (so is GID)...
>
>Also, uid_t is defined as an arithmetic type (same for gid_t).
>
>How does one handle (or can one handle) certain networking conventions that
>use a "dummy" user ("nobody") and require a user id of -2 ?
>
>Do these conflict as they seem, or am I missing something (always possible..)
No, you're spotting something. Yes, this is a known conflict between
``certain networking conventions'' and POSIX.1. My guess is that it falls
to POSIX.8 (transparent file access) to unwind. As POSIX.8 is now defining
two styles of remote file access -- full POSIX.1 semantics (namely better
than ``certain networking conventions''), and highly curtailed semantics
(considerably less than ``certain networking conventions''), one option at
its disposal is to let negative user id's fall down the crack (gulf?)
between the two styles. An alternative is to weasel out of the conflict by
saying that accesses to remote files by unrecognised users map onto some
unique, unprivileged uid without actually admitting that the uid might be
negative. Or that they map onto UID_MAX - 1 (except that POSIX.1 does not
have a UID_MAX because uid_t is allowed to be a magic cookie -- albeit a
magic cookie of arithmetic type). (Incidentally, ISO's central secretariat
has, not ureasonably, asked us for a definition of ``magic cookie''.
Suggestions?)
--
Dominic Dunlop
Volume-Number: Volume 20, Number 62
Technical Details
Message-ID:
<749@longway.TIC.COM>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!brutus.cs.uiuc.edu!apple!longway!std-unixReferences:
<743@longway.TIC.COM>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!brutus.cs.uiuc.edu!apple!longway!std-unix From: domo@tsa.co.uk (Dominic Dunlop) Newsgroups: comp.std.unix Subject: Re: UIDs and GIDs Message-ID: <749@longway.TIC.COM> Date: 29 Jun 90 09:47:07 GMT References: <743@longway.TIC.COM> Sender: std-unix@longway.TIC.COM Reply-To: domo@tsa.co.uk Organization: The Standard Answer Ltd. Lines: 31 Approved: jsq@longway.tic.com (Moderator, John S. Quarterman)