diff options
author | rmacklem <rmacklem@FreeBSD.org> | 2017-05-07 20:50:32 +0000 |
---|---|---|
committer | rmacklem <rmacklem@FreeBSD.org> | 2017-05-07 20:50:32 +0000 |
commit | 0738380bf8e226ddaece58641290e584537f118e (patch) | |
tree | 2026c52aae173e49ae0b530d8da204c48f064550 /usr.sbin | |
parent | cb0edd9768e2bdbf8025274f425b2ef202af3dbc (diff) | |
download | FreeBSD-src-0738380bf8e226ddaece58641290e584537f118e.zip FreeBSD-src-0738380bf8e226ddaece58641290e584537f118e.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')
-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]; |