Page 1 of 1

How do you reapply ACLs to recoved files

Posted: Tue Sep 25, 2018 8:50 am
by zktech
We have recovered some files and folders with the ACLs' . The recovery created some files with extensions .posix_acl_access, posix_acl_default, and system.NTACL

How do we apply these back to the folders and files?

Thanks for any insights.

Re: How do you reapply ACLs to recoved files

Posted: Tue Sep 25, 2018 12:09 pm
by Alt
Looks like you saved recovered files from a Linux/Unix file system to an NTFS disks. Had you done it to the same file system, you wouldn't have had this problem.
Now you can use the setfattr command to restore those attributes to the files copied to the disks with the original file system. You need to create a batch file that reads the values from a .file and then assigns them to each file.