[Bug 253901] nfsv4_server values in /etc/rc.conf appear to not be functioning as intended

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Feb 27 22:14:05 UTC 2021


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=253901

            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 at FreeBSD.org
          Reporter: debdrup at freebsd.org

I tried configuring NFSv4 with TCP by setting the following in /etc/rc.conf:
mountd_enable="YES"
nfs_server_enable="YES"
nfsv4_server_only="YES"
nfsv4_server_enable="YES"
nfsuserd_enable="YES"
nfs_server_flags="-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 nit,
but it might as well be fixed if it's not intended to work like that.

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


More information about the freebsd-bugs mailing list