Jump to content

Ken Huang

Members
  • Posts

    5
  • Joined

  • Last visited

Everything posted by Ken Huang

  1. NFS share mounted on CenOS 6.5 and 7.0, file can be deleted or read regardless owner and permission. 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]$
  2. 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 :-)
  3. 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]$
  4. 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?
×
×
  • Create New...