Author: rmacklem
Date: Sun May  7 20:42:01 2017
New Revision: 317919
URL: https://svnweb.freebsd.org/changeset/base/317919

Log:
  MFC: r317350
  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.

Modified:
  stable/11/usr.sbin/nfsuserd/nfsuserd.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/usr.sbin/nfsuserd/nfsuserd.c
==============================================================================
--- stable/11/usr.sbin/nfsuserd/nfsuserd.c      Sun May  7 20:32:07 2017        
(r317918)
+++ stable/11/usr.sbin/nfsuserd/nfsuserd.c      Sun May  7 20:42:01 2017        
(r317919)
@@ -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];
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to