Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Apr 2017 23:09:03 +0000 (UTC)
From:      Rick Macklem <rmacklem@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r317350 - head/usr.sbin/nfsuserd
Message-ID:  <201704232309.v3NN93Tu030902@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@pkgsrc.org
  Submitted by:	tez@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];



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201704232309.v3NN93Tu030902>