<story><title>Casually removing root files</title><url>https://ervinb.github.io/2017/08/16/casually-removing-root-files/</url></story><parent_chain></parent_chain><comment><author>wolfgang42</author><text>&lt;i&gt;&amp;gt; The only requirement is to have write permissions on the parent directory (and the execute flag on the parent directory).&lt;/i&gt;&lt;p&gt;&lt;i&gt;&amp;gt; The $HOME directory naturally fulfills both of these requirements from the user’s perspective.&lt;/i&gt;&lt;p&gt;Note that there&amp;#x27;s nothing special about the user&amp;#x27;s home directory here, it just happens to normally have u+wx. It&amp;#x27;s entirely possible to have the user&amp;#x27;s home &lt;i&gt;not&lt;/i&gt; owned by themselves; you might want to do this for example if you have a restricted user who you don&amp;#x27;t want messing around with their dotfiles.</text></comment>
<story><title>Casually removing root files</title><url>https://ervinb.github.io/2017/08/16/casually-removing-root-files/</url></story><parent_chain></parent_chain><comment><author>alethiophile</author><text>My use case for `chattr +i`: an rsync backup, on a cronjob, into an external drive mounted at a given point. Make the mountpoint directory `+i` so that the root-run rsync doesn&amp;#x27;t blindly fill up your root filesystem with the backup target, if it gets run while the external drive isn&amp;#x27;t mounted.</text></comment>