Andrew Hydle wrote: > Is there a way to export a ZFS ACL into a text file? In the past I used to be > able to use getfacl -R > text.file and then setfacl --restore=text.file to > export and restore ACL's? > > Not with the current commands.
The output of ls is a different format from the input of chmod. The library API is there (acl_totext and acl_fromtext in libsec). I ended up writing an ACL manipulation application to get save to/restore from file functionality. > This has always been important too me before doing samba upgrades. I have had > samba upgrades create problems in the uid/gid ampping files in the past which > resulted in lost or incorrect ACL's after the upgrade. > > I haven't seen this. I guess you could tar up the files and extract any broken ones from the archive. Ian.