System Administration Guide: Security Services

ProcedureHow to Copy an ACL

  1. Copy a file's ACL to another file by redirecting the getfacl output.

    % getfacl filename1 | setfacl -f - filename2 

    Specifies the file from which to copy the ACL.


    Specifies the file on which to set the copied ACL.

Example 7–8 Copying an ACL

In the following example, the ACL on ch2.sgm is copied to ch3.sgm.

% getfacl ch2.sgm | setfacl -f - ch3.sgm