<div dir="ltr">Hi All,<div>After a recent update to gluster 3.5 we are having some issues renaming files when root squashing is enabled and the folder group permissions are not set to write. </div><div><br></div><div>For example if I create a folder with the following permissions</div>
<div><font face="courier new, monospace">$ mkdir test</font></div><div><font face="courier new, monospace">$ chmod g-w test</font></div><div><font face="courier new, monospace">$ ls -l </font></div><div><div><font face="courier new, monospace">drwxr-xr-x  2 dave dave  22 Jul 14 17:16 test</font></div>
</div><div><br></div><div>When I create a file <i>within</i> this folder, and try to rename it I get a file permissions error. </div><div><br></div><div><font face="courier new, monospace">$ cd test</font></div><div><font face="courier new, monospace">$ touch asdf</font></div>
<div><font face="courier new, monospace">$ mv asdf asdf2</font></div><div><div><font face="courier new, monospace">mv: cannot move ‘asdf’ to ‘asdf2’: Permission denied</font></div></div><div><br></div><div>A strace on the mv command reveals the rename system call fails with:</div>
<div><div><font face="courier new, monospace">rename(&quot;asdf&quot;, &quot;asdf2&quot;) = -1 EACCES (Permission denied)</font></div></div><div><br></div><div>However I can copy the file and delete the old one fine. </div>
<div><br></div><div>If I either disable gluster root squashing, or change the test_dir folder group permission to write then I can rename the file without any problems.</div><div><br></div><div>System details are:<br></div>
<div>Arch linux</div><div>System umask is set to 002<br></div><div>Distributed volume, 3 peers, 1 brick per peer. </div><div><br></div><div>Any help is much appreciated!</div><div>Dave</div><div><div><br></div><div><br></div>

</div></div>