Date: Fri, 21 Apr 2017 11:55:25 +0000 From: Rick Macklem <rmacklem@uoguelph.ca> To: "freebsd-current@freebsd.org" <freebsd-current@freebsd.org> Cc: Bruce Evans <bde@FreeBSD.org> Subject: kernel coding of nobody/nogroup Message-ID: <YTXPR01MB01891B0098C7E163B8D82CC6DD1A0@YTXPR01MB0189.CANPRD01.PROD.OUTLOOK.COM>
next in thread | raw e-mail | index | archive | help
Hi, I need to set the default uid/gid values for nobody/nogroup into kernel variables. I reverted the commit that hardcoded them, since I agree that wasn't a good thing to do. I didn't realize that "nobody" was already defined in sys/conf.h and I can use that. There is no definition for "nogroup" in sys/conf.h. Would it be ok to add #define GID_NOGROUP 65533 to syy/conf.h? (I know bde@ doesn't like expressing this as 65533, but that is what it is = in /etc/group.) rick ps: These values are usually set by nfsuserd(8), but need to be initialized= for the case where is in not being run. The default uid/gid in nfsuserd.c needs t= o be fixed too, although they only get used if there isn't an entry for nobody/nogro= up in the password/group database.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?YTXPR01MB01891B0098C7E163B8D82CC6DD1A0>