Date: Fri, 21 Apr 2017 20:37:40 +0000 From: Rick Macklem <rmacklem@uoguelph.ca> To: "freebsd-current@freebsd.org" <freebsd-current@freebsd.org> Cc: Bruce Evans <bde@FreeBSD.org> Subject: default uid/gid for nfsuserd.c Message-ID: <YQBPR01MB0180D95925658234A6E02F18DD1A0@YQBPR01MB0180.CANPRD01.PROD.OUTLOOK.COM>
next in thread | raw e-mail | index | archive | help
Hi, I just added GID_NOGROUP to sys/conf.h and fixed the initial values for nobody/nogroup in the kernel. However, UID_NOBODY and GID_NOGROUP are in the _KERNEL section of sys/conf.h, so they aren't visible in userland. So, how to I set the initial uid/gid values for nfsuserd.c? (nfsuserd.c looks for entries in the password and group databases, so these= defaults only get used if it doesn't find an entry in the database.) I don't mind using the hardcoded values, but is there a better way? (Moving the #define's out of the _KERNEL section maybe?) rick=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?YQBPR01MB0180D95925658234A6E02F18DD1A0>