<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://dev1galaxy.org/extern.php?action=feed&amp;tid=7267&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / nfs4 no_root_squash strange behavior]]></title>
		<link>http://dev1galaxy.org/viewtopic.php?id=7267</link>
		<description><![CDATA[The most recent posts in nfs4 no_root_squash strange behavior.]]></description>
		<lastBuildDate>Sat, 28 Jun 2025 16:13:10 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: nfs4 no_root_squash strange behavior]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=56348#p56348</link>
			<description><![CDATA[<p>From <span class="bbc">man chattr</span>:<br />Only the superuser or a process possessing the CAP_LINUX_IMMUTABLE capability can set or clear this attribute.</p><p>And what are the ownership and permissions of the directory? That is what controls which accounts can delete a file.</p>]]></description>
			<author><![CDATA[dummy@example.com (chris2be8)]]></author>
			<pubDate>Sat, 28 Jun 2025 16:13:10 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=56348#p56348</guid>
		</item>
		<item>
			<title><![CDATA[Re: nfs4 no_root_squash strange behavior]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=56326#p56326</link>
			<description><![CDATA[<div class="codebox"><pre><code>(root@client-~/importedshare)$ chattr +i test.txt
chattr: Operation not supported while reading flags on test.txt</code></pre></div><p>But i changed &#039;test.txt&#039;s attribute in the server. </p><p>Thanks for reminding me that UNIX &#039;quirk&#039; .</p>]]></description>
			<author><![CDATA[dummy@example.com (chomwitt)]]></author>
			<pubDate>Fri, 27 Jun 2025 20:15:43 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=56326#p56326</guid>
		</item>
		<item>
			<title><![CDATA[Re: nfs4 no_root_squash strange behavior]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=56320#p56320</link>
			<description><![CDATA[<p>Try <span class="bbc">ls -ld ~/exportedshare</span> on server. If the chomwitt account has write access to the directory it will be able to delete files in it even if it can&#039;t do anything else to them. This is one of the non-intuitive quirks of how UNIX file permissions work.</p><p>You could prevent it with <span class="bbc">chattr +i text.txt</span> if you really needed to.</p>]]></description>
			<author><![CDATA[dummy@example.com (chris2be8)]]></author>
			<pubDate>Fri, 27 Jun 2025 16:22:04 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=56320#p56320</guid>
		</item>
		<item>
			<title><![CDATA[nfs4 no_root_squash strange behavior]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=56318#p56318</link>
			<description><![CDATA[<p>According to $ man exports :&#160; &#160;</p><div class="quotebox"><blockquote><div><p><strong> root_squash</strong><br />Map requests from uid/gid 0 to the anonymous uid/gid. Note that this does not apply to any other uids or gids that might be equally sensitive such as user bin or group staff.<br /><strong> no_root_squash</strong><br />Turn off root squashing. This option is mainly useful for diskless clients.</p></div></blockquote></div><p>And assuming my server /etc/exports is :<br />/home/chomwitt/NFSExport&#160; &#160; &#160;192.168.2.44(rw,sync,no_subtree_check,no_root_squash)</p><p>It happens that a client/root user can create a file in the nfs share.<br />(root@client-~/importedshare) # touch test.txt</p><p>And in the client we will indeed see that a file was created:<br />(chomwtt@server-~/exportedshare) # ls<br />-rw-r--r--&#160; 1 root&#160; &#160; &#160;root&#160; &#160; &#160; &#160; &#160; &#160; &#160;0 Jun 27 17:01&#160; test.txt</p><p>Now logically chomwitt@server should not be able to delete that test.txt . But i can.</p><p>Is that a bug?</p>]]></description>
			<author><![CDATA[dummy@example.com (chomwitt)]]></author>
			<pubDate>Fri, 27 Jun 2025 14:18:51 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=56318#p56318</guid>
		</item>
	</channel>
</rss>
