<html><head></head><body><a href="https://bugzilla.redhat.com/enter_bug.cgi?product=GlusterFS">https://bugzilla.redhat.com/enter_bug.cgi?product=GlusterFS</a><br>
<br>
Please file a bug report.<br><br><div class="gmail_quote">On July 14, 2014 12:38:11 AM PDT, David Raffelt &lt;d.raffelt@brain.org.au&gt; wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<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>
<p style="margin-top: 2.5em; margin-bottom: 1em; border-bottom: 1px solid #000"></p><pre class="k9mail"><hr /><br />Gluster-users mailing list<br />Gluster-users@gluster.org<br /><a href="http://supercolony.gluster.org/mailman/listinfo/gluster-users">http://supercolony.gluster.org/mailman/listinfo/gluster-users</a></pre></blockquote></div><br>
-- <br>
Sent from my Android device with K-9 Mail. Please excuse my brevity.</body></html>