Richard Crawford wrote: ...
5. Give B.txt the same permissions as A.txt
I assume that there is some set of variables I can look at to find various attributes of A.txt, so that $APerm = permissions(A.txt) or something, so I can do chmod $APerm B.txt in step 5.
From the "setfacl" man page:
Copying the ACL of one file to another getfacl file1 | setfacl --set-file=- file2
If your distribution includes getfacl/setfacl, these would be the best options (even on file systems that don't have ACLs).
-- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list