Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Feb 2021 22:14:05 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 253901] nfsv4_server values in /etc/rc.conf appear to not be functioning as intended
Message-ID:  <bug-253901-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D253901

            Bug ID: 253901
           Summary: nfsv4_server values in /etc/rc.conf appear to not be
                    functioning as intended
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: debdrup@freebsd.org

I tried configuring NFSv4 with TCP by setting the following in /etc/rc.conf:
mountd_enable=3D"YES"
nfs_server_enable=3D"YES"
nfsv4_server_only=3D"YES"
nfsv4_server_enable=3D"YES"
nfsuserd_enable=3D"YES"
nfs_server_flags=3D"-t --minthreads 1 --maxthreads 8"
[SNIP]

However, `mount_nfs -o nfsv4 -o tcp ...` on the client would fail with:
mount_nfs: nmount: /mnt/test: Permission denied
[SNIP]

It kept doing this irrespective of any field values added to the sharenfs
property until I added "V4: /" to /etc/exports

So I think the nfsv4_server_* values in /etc/defaults/rc.conf might not be
working as intended?

Also, as an aside, mountd complains if /etc/exports doesn't exist, even if
/etc/zfs/exports does when using the sharenfs property - this is mostly a n=
it,
but it might as well be fixed if it's not intended to work like that.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



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