git: mountd(8): Change default uid/gid to nobody/nogroup (65534/65533)

Sascha Wildner swildner at
Wed Mar 14 01:30:53 PDT 2018

commit 19e6154dd4c873698a0ae01a6d2f2e9793d15b04
Author: Aaron LI <aly at>
Date:   Fri Nov 10 19:38:10 2017 +0800

    mountd(8): Change default uid/gid to nobody/nogroup (65534/65533)
    The default values found in /etc/passwd and /etc/group are 65534, 65533.
    In mountd.c, the defaults were -2, which was 65534 back when uid_t was 16bits.
    Without this patch, a file created by root on an NFS exported volume without
    the "-root=" export option will end up owned by uid 4**32 - 2.
    When discussed on freebsd-current@, it seemed that users preferred the
    values being changed to 65534/65533.
    I have not added code to acquire these values from the databases, since
    the mountd daemon might get "stuck" during startup waiting for a non-responsive
    password database server.
    Taken-from: FreeBSD usr.sbin/mountd/mountd.c r318262

Summary of changes:
 sbin/mountd/exports.5 | 4 ++--
 sbin/mountd/mountd.c  | 8 ++++----
 2 files changed, 6 insertions(+), 6 deletions(-)

DragonFly BSD source repository

More information about the Commits mailing list