<p>On Sep 21, 2012 4:36 PM, "KD" <<a href="mailto:kdall99@hotmail.com">kdall99@hotmail.com</a>> wrote:<br>
><br>
> William Scott Lockwood III <vladinator <at> <a href="http://gmail.com">gmail.com</a>> writes:<br>
><br>
> > On Sep 21, 2012 4:00 PM, "Thufir" <hawat.thufir <at> <a href="http://gmail.com">gmail.com</a>> wrote:<br>
> > ><br>
> > > Under what conditions can this file get deleted?<br>
><br>
> Under the condition that the permissions of the directory containing it allow it.<br>
><br>
> > > thufir <at> dur:/var/spool/news/interesting.groups$<br>
> > > thufir <at> dur:/var/spool/news/interesting.groups$ ll /var/spool/news/<br>
> > > interesting.groups/gmane.linux.ubuntu.user<br>
> > > -r--r--r-- 1 news news 0 Sep 9 23:37 /var/spool/news/interesting.groups/<br>
> > > gmane.linux.ubuntu.user<br>
> > > thufir <at> dur:/var/spool/news/interesting.groups$<br>
> > ><br>
> > ><br>
> > ><br>
> > > I want that this file can be read, but not deleted. I looked through<br>
> > > <a href="https://help.ubuntu.com/community/FilePermission">https://help.ubuntu.com/community/FilePermission</a><br>
> > > but wasn't sure that I have the correct setting.<br>
><br>
> Well, that a non-existing wiki page provides only little enlightment, should<br>
> come as no surprise.<br>
> OTOH<br>
> <a href="https://help.ubuntu.com/community/FilePermissions">https://help.ubuntu.com/community/FilePermissions</a><br>
> has all info.<br>
><br>
> > Now do chattr +i to the file.<br>
><br>
> Irrelevant. Whether or not a file may be deleted has nothing to do with the<br>
> permissions of the file itself - only the permissions of the directory<br>
> containing it matter.<br>
><br>
> --<br>
> KD</p>
<p>Making the file immutable will prevent any modification. Thus the 'immutable' part.</p>