Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #65323

Bug#934160: nfs-common: Umask ignored, all files created world-writable on NFS

From Cédric <cedric.dufour@ced-network.net>
Newsgroups linux.debian.bugs.dist, linux.debian.kernel
Subject Bug#934160: nfs-common: Umask ignored, all files created world-writable on NFS
Date 2019-10-05 18:20 +0200
Message-ID <yNUWJ-2mf-1@gated-at.bofh.it> (permalink)
References <ysww2-1nw-15@gated-at.bofh.it>
Organization linux.* mail to news gateway

Cross-posted to 2 groups.

Show all headers | View raw


+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'

Back to linux.debian.kernel | Previous | Next | Find similar | Unroll thread


Thread

Bug#934160: nfs-common: Umask ignored, all files created world-writable on NFS Cédric <cedric.dufour@ced-network.net> - 2019-10-05 18:20 +0200

csiph-web