+1 QUIRK: In order to reliably disable NFS 4.2 on *server* side; in /etc/systemd/system/nfs-server.service.d/nfs-version.conf
# Disable NFS 4.2 # FIX: umask ignored (files created world-writable) when using NFS 4.2 (on top of ZFS) # BUG: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=934160 # REF: https://tools.ietf.org/id/draft-ietf-nfsv4-umask-03.html # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=47057abde515155a4fee53038e7772d6b387e0aa # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=880a3a5325489a143269a8e172e7563ebf9897bc # BUG: https://zfsonlinux.topicbox.com/groups/zfs-discuss/T36a651c77dc95fec-Ma755882676a054fe9a903c7f/zfs-discuss-umask-not-respected-when-a-shared-dataset-is-mountedvia-nfs-4-2 # BUG: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=738063 # BUG: https://linuxlists.cc/l/17/linux-nfs/t/3236382/nfs-config.service_fails_to_apply_no-nfs-version_after_a_reboot#post3236382 [Service] ExecStartPre=/bin/sh -c '/usr/sbin/rpc.nfsd 0; echo -2 +3 +4 +4.1 -4.2 > /proc/fs/nfsd/versions'