-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ZFS NFS sharenfs=on does NOT map root user to nobody by default #9397
Labels
Component: Share
"zfs share" feature
Comments
Well, I did find this, https://zfsonlinux.org/manpages/0.7.13/man8/zfs.8.html This behavior is by default. Aside from all the other implementations of NFS. ZoL is wide open. Seems like a bold move and as history has proven may not be the best. |
behlendorf
added a commit
to behlendorf/zfs
that referenced
this issue
Oct 7, 2019
While it may sometimes be convenient to export an NFS filesystem with no_root_squash it should not be the default behavior. Align the default behavior with the Linux NFS server defaults. To restore the previous behavior use 'zfs set sharenfs="no_root_squash,..."'. Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Issue openzfs#9397
12 tasks
behlendorf
added a commit
to behlendorf/zfs
that referenced
this issue
Oct 7, 2019
While it may sometimes be convenient to export an NFS filesystem with no_root_squash it should not be the default behavior. Align the default behavior with the Linux NFS server defaults. To restore the previous behavior use 'zfs set sharenfs="no_root_squash,..."'. Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Issue openzfs#9397
Brian, thank you for the reply. I’m guessing I should leave the ticket I opened, open for right now.
Sent from Gary's iPhone
… On Oct 7, 2019, at 12:10 PM, Brian Behlendorf ***@***.***> wrote:
@gkeen thank's for calling our attention to this. I've opened PR #9425 which modifies the default behavior to something a little more conventional.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@gkeen yes, please leave it open. We'll close it out once the proposed changed in reviewed and merged. |
tonyhutter
pushed a commit
to tonyhutter/zfs
that referenced
this issue
Dec 26, 2019
While it may sometimes be convenient to export an NFS filesystem with no_root_squash it should not be the default behavior. Align the default behavior with the Linux NFS server defaults. To restore the previous behavior use 'zfs set sharenfs="no_root_squash,..."'. Reviewed-by: loli10K <ezomori.nozomu@gmail.com> Reviewed-by: Richard Laager <rlaager@wiktel.com> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes openzfs#9397 Closes openzfs#9425
tonyhutter
pushed a commit
to tonyhutter/zfs
that referenced
this issue
Dec 27, 2019
While it may sometimes be convenient to export an NFS filesystem with no_root_squash it should not be the default behavior. Align the default behavior with the Linux NFS server defaults. To restore the previous behavior use 'zfs set sharenfs="no_root_squash,..."'. Reviewed-by: loli10K <ezomori.nozomu@gmail.com> Reviewed-by: Richard Laager <rlaager@wiktel.com> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes openzfs#9397 Closes openzfs#9425
tonyhutter
pushed a commit
that referenced
this issue
Jan 23, 2020
While it may sometimes be convenient to export an NFS filesystem with no_root_squash it should not be the default behavior. Align the default behavior with the Linux NFS server defaults. To restore the previous behavior use 'zfs set sharenfs="no_root_squash,..."'. Reviewed-by: loli10K <ezomori.nozomu@gmail.com> Reviewed-by: Richard Laager <rlaager@wiktel.com> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #9397 Closes #9425
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
System information
Describe the problem you're observing
Using zfs set sharenfs=on to a zfs filesystem by default does not map root user to user nobody
Describe how to reproduce the problem
Install Centos 7 on any white box. Install zfs version 0.7.13-1. Create a pool of available drives and turn NFS on with no other options using zfs set sharenfs=on <pool/filesystem>. Move to another system that has a NFS client on it. As root user ,mount the newly shared zfs directory. Create a file or directory or both as root. Do a long listing in the directory to discover the owner/group permissions remain root.
Include any warning/errors/backtraces from the system logs
The text was updated successfully, but these errors were encountered: