<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle"></style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">
<div>When using the following to keep duplicate files on multiple computers, I find some files have their ACLs changed and cannot then be opened.</div>
<div><br>
</div>
I am using the following command. My goal is to be able to read/write/edit any local or remote file from any machine. Until recently this worked just fine, but now some files cannot be opened once rsync'd.
<div><br>
</div>
<div>rsync -avzh --progress --delete --super -A --exclude='~$*'  '/cygdrive/d/claus.a' /cygdrive/x</div>
<div><br>
</div>
<div>D is the drive on the remote computer I am currently using, X is its mirror on another remote computer.</div>
<div><br>
</div>
<div>When RSYNC'ing I get the following for the files that will not open, after it shows the file transfers:</div>
<div>
<div>rsync: set_acl: sys_acl_set_file(claus.a/.rsync commands.txt.1BY2xz, ACL_TYPE_ACCESS): Invalid argument (22)</div>
<div>rsync: set_acl: sys_acl_set_file(claus.a/.test.txt.CA1No2, ACL_TYPE_ACCESS): Invalid argument (22)</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>On the source machine, the ACLs for files that open and don't open once RSYNC'd are identical. </div>
<div>
<div># owner: claus.a<span class="Apple-tab-span" style="font-size: 13.3333330154419px; white-space: pre;">
</span><span style="font-size: 13.3333330154419px;">(or Administrators in some cases, but files with both owners work & fail)</span></div>
<div># group: Domain Usersge</div>
<div>user::---</div>
<div>group::---</div>
<div>group:root:rwx</div>
<div>group:Authenticated Users:rwx</div>
<div>group:SYSTEM:rwx</div>
<div>group:Users:rwx</div>
<div>mask:rwx</div>
<div>other:---</div>
</div>
<div><br>
</div>
<div><span style="font-size: 10pt;">However, once RYSNC'd the failing files get "</span><span style="font-size: 10pt;">group::rwx". This seems to cause the failure to open.</span></div>
<div><span style="font-size: 10pt;">All files (work or fail) lose the entire "group:root:rwx" ACL, but this seems to have no impact.</span></div>
<div><span style="font-size: 10pt;"><br>
</span></div>
<div><span style="font-size: 10pt;">Removing the new ACL with setfacl -m g::--- solves my problem, but this is not a long term solution.</span></div>
<div><br>
</div>
<div>Thanks,</div>
<div>
<div>
<div>
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div>Andrew</div>
<div></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>