chmod 444 *

Avi Greenbury lists at avi.co
Fri Sep 21 22:45:09 UTC 2012


Thufir wrote:
> Under what conditions can this file get deleted?
> 
> thufir at dur:/var/spool/news/interesting.groups$ 
> thufir at dur:/var/spool/news/interesting.groups$ ll /var/spool/news/
> interesting.groups/gmane.linux.ubuntu.user 
> -r--r--r-- 1 news news 0 Sep  9 23:37 /var/spool/news/interesting.groups/
> gmane.linux.ubuntu.user
> thufir at dur:/var/spool/news/interesting.groups$ 

Other people have covered preventing anyone from deleting it, but in
answer to the first bit of your question: root has all permissions on
every file irrespective of its permission bits[0]. 

-- 
Avi

[0] *not* irrespective of its filesystem attributes, as set with
chattr




More information about the ubuntu-users mailing list