diff options
author | rmacklem <rmacklem@FreeBSD.org> | 2017-05-07 20:42:01 +0000 |
---|---|---|
committer | rmacklem <rmacklem@FreeBSD.org> | 2017-05-07 20:42:01 +0000 |
commit | b50c780dd1a45756807dcfdc32b6904ab187254b (patch) | |
tree | 858dfc42479bf0bac625eaef767bb2ce18ec58d0 /usr.sbin/nfsuserd | |
parent | d1f3556f95fb19df48e271e4266e8aaa95fd7a48 (diff) | |
download | FreeBSD-src-b50c780dd1a45756807dcfdc32b6904ab187254b.zip FreeBSD-src-b50c780dd1a45756807dcfdc32b6904ab187254b.tar.gz |
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.
Diffstat (limited to 'usr.sbin/nfsuserd')
-rw-r--r-- | usr.sbin/nfsuserd/nfsuserd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/nfsuserd/nfsuserd.c b/usr.sbin/nfsuserd/nfsuserd.c index 293da71..413e5ce 100644 --- a/usr.sbin/nfsuserd/nfsuserd.c +++ b/usr.sbin/nfsuserd/nfsuserd.c @@ -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]; |