I believe that (uid_t)-2 has a lot to do with the user nobody. That was the historical reason why the uid 65534 for chosen for nobody back when uid_t was only 16 bits.
I would recommend that the default mapped uid for root be defined as 65534 instead of (uid_t)-2. This seems to make the most sense when trying to avoid user suprises. I would also suggest the default gid be changed similarly. (On Solaris 2.5.1, nobody is now uid 60001 with nobody4 as uid 65534 (for SunOS 4).) Jim Bloom bl...@acm.org Bruce Evans wrote: > > 4294967294 is just the default mapped uid for root. It is (uid_t)-2. > See mountd sources. It has nothing to do with user nobody or 65534, > except possibly on buggy clients that silently truncate it mod 65536. > Perhaps it is a bug to use (uid_t)-2 instead of 65534. For clients > with only 16-bit uid_t's you would want to keep all uids on the > server < 65536. > > Bruce To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe freebsd-current" in the body of the message