Reset ACLs in NFS4/ZFS network share

nfs4openindianaopensolariszfs

How can I reset the ACLs on a ZFS file system on OpenIndiana that is exported via NFS4 and replace it with inherited permissions? Basically, I want to do the equivalent of icacls "C:\path\to\folder" /reset /T /C on Windows on this machine. However, neither the chmod command on OpenIndiana nor the nfs4_setacl seems to allow for deleting all ACLs although the client correctly interprets inherited ACLs if a node does not have an own one.

Best Answer

You can remove all non trivial ACLs in ZFS with the following: chmod A- filename

Source: Solaris ZFS Administration Guide: Using ACLs and Attributes to Protect ZFS Files