1

I'm trying to figure out how can I NFS share same directory RO for all users and RW for some IPs.

OS: Arch Linux & File System: ZFS

I have a config in "/etc/exports.d/testPool.aaa.exports"

/testPool/aaa 192.168.10.16(rw,wdelay,hide,nocrossmnt,secure,no_subtree_check,secure_locks,acl,no_pnfs,mountpoint,sync,root_squash,all_squash,anonuid=65534,anongid=65534,sec=sys)

/testPool/aaa *(ro,wdelay,hide,nocrossmnt,secure,no_subtree_check,secure_locks,acl,no_pnfs,mountpoint,sync,root_squash,all_squash,anonuid=65534,anongid=65534,sec=sys)

With this conf I can't write even when I am using that IP. If I use IP's instead " * " for RW and RO everything works. But when I use " * " to "RO" other lines are ignored and everybody becomes readonly.

Can you tell me why I can't use " * " and IP together?


Do I need 777 permissions to write as nobody? Or do I need to map nobody user to local user for security reasons?

  • Is this NFS v3 or v4? – roaima Jul 17 '17 at 8:20
  • v4-v3 doesn't matter. it must all about nfs export conf. – Morphinz Jul 17 '17 at 9:10
  • Suit yourself. Configuration works perfectly for me here. I wanted to check our differences. – roaima Jul 17 '17 at 9:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.