Ken Huang Posted May 5, 2018 Share Posted May 5, 2018 I have Unraid 6.5.1 nfs mounted on CentOS 6.5, I can set ownership and file permission on mounted NFS on client, however any user is to able to delete or modified regardless the ownership and permission on the file. I am missing anything Unraid NFS configuration? Quote Link to comment
ken-ji Posted May 5, 2018 Share Posted May 5, 2018 What kind of NFS share to you have? (Public/Secure/Private) and what's the output of # cat /etc/exports # exportfs -v And how are they mounted from the CentOS client? Quote Link to comment
Ken Huang Posted May 5, 2018 Author Share Posted May 5, 2018 (edited) Here is the exports and exportfs -v NFS share is private In the test below, I can remove file and directory own by root. exports # See exports(5) for a description. # This file contains a list of all directories exported to other computers. # It is used by rpc.nfsd and rpc.mountd. "/mnt/user/Backups" -async,no_subtree_check,fsid=104 192.168.15.0/24(sec=sys,rw,no_root_squash,insecure,acl) exportfs -v /mnt/user/Backups 192.168.15.0/24(rw,async,wdelay,hide,no_subtree_check,fsid=104,sec=sys,insecure,no_root_squash,no_all_squash) mount fstab sun:/mnt/user/Backups/Servers/earth /net_backup nfs defaults 1 2 The test directory is own by root but I can remove the directory with regular user. [ken@earth net_backup]$ ls -tlr total 0 drwx------ 1 root root 0 May 5 07:27 test [ken@earth net_backup]$ rm -rf test [ken@earth net_backup]$ Edited May 5, 2018 by Ken Huang Quote Link to comment
ken-ji Posted May 5, 2018 Share Posted May 5, 2018 Hmm. tried it and you are correct... this is probably a bug with the user shares. I can't shutdown my array for a while, but if you have disk shares enabled, try creating an NFS share there and doing the same tests there. Feel free to create a defect report. Quote Link to comment
Ken Huang Posted May 5, 2018 Author Share Posted May 5, 2018 Same result when create a share on disk shares enabled, no ACL on client. Thanks for confirming, it's not just me crazy, never seen something like this before and just moved from FreeNAS to Unraid few months ago and a long time NFS user :-) Quote Link to comment
FlamongOle Posted December 10, 2018 Share Posted December 10, 2018 (edited) Any updates on this? I experience the same thing with my unassigned device share and I am heavily dependent on the system accepting the user/group permissions - right now everybody get access to r/w and completely ignoring the file permissions. I know I can specify them myself in the exports file, but it get overwritten every time I do an update with any NFS share in unraid GUI, which is quite annoying. Any simple solution to either keep very specific rules to apply, or making it care about the permissions? It magically worked anyway, dunno what happened. Edited December 10, 2018 by olehj Invalid comment Quote Link to comment
kristof Posted March 21, 2020 Share Posted March 21, 2020 I see the same behavior. The NFS is ignoring owner and permissions to files and folders. Any hint if this will be fixed? Any workarounds maybe? Using Unraid 6.8.3 Quote Link to comment
robbot Posted August 14, 2021 Share Posted August 14, 2021 I'm also seeing this same behavior, Unraid 6.9.2, Centos 8 stream nfs client. The share can be mounted and all the file permissions are correct on both the server and client. I can also create files with the proper permissions based on the user on the client. But the user can then do anything as if permissions were totally open. Anyone solved this? Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.