svn commit: r317350 - head/usr.sbin/nfsuserd

Rick Macklem rmacklem at FreeBSD.org
Sun Apr 23 23:09:04 UTC 2017


Author: rmacklem
Date: Sun Apr 23 23:09:02 2017
New Revision: 317350
URL: https://svnweb.freebsd.org/changeset/base/317350

Log:
  Fix the default uid/gid values in nfsuserd.c
  
  This patch sets the default uid/gid values for "nobody" and "nogroup"
  to the values in the password and group databases. Normally nfsuserd(8)
  will override these with whatever is in the password/group databases,
  so these values are only used when the databases entries aren't available.
  It would be nice to use the definitions in sys/conf.h, but those are
  in the _KERNEL section of the file.
  
  Reported by:	tez at pkgsrc.org
  Submitted by:	tez at pkgsrc.org
  MFC after:	2 weeks

Modified:
  head/usr.sbin/nfsuserd/nfsuserd.c

Modified: head/usr.sbin/nfsuserd/nfsuserd.c
==============================================================================
--- head/usr.sbin/nfsuserd/nfsuserd.c	Sun Apr 23 22:31:12 2017	(r317349)
+++ head/usr.sbin/nfsuserd/nfsuserd.c	Sun Apr 23 23:09:02 2017	(r317350)
@@ -88,9 +88,9 @@ struct info {
 
 u_char *dnsname = "default.domain";
 u_char *defaultuser = "nobody";
-uid_t defaultuid = (uid_t)32767;
+uid_t defaultuid = 65534;
 u_char *defaultgroup = "nogroup";
-gid_t defaultgid = (gid_t)32767;
+gid_t defaultgid = 65533;
 int verbose = 0, im_a_slave = 0, nfsuserdcnt = -1, forcestart = 0;
 int defusertimeout = DEFUSERTIMEOUT, manage_gids = 0;
 pid_t slaves[MAXNFSUSERD];


More information about the svn-src-head mailing list