[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

can touch(1) readonly files



Gentlemen, what's the deal where one can change the dates on read-only files?
$ chmod -w f; touch -d 'next year' f; ls -l f
-r--r--r-- 1 jidanni jidanni 666 2004-05-13 03:02 f

I mean it's tantamount to where a bad guy has spray painted the
paintings in the museum, in my mind.

The info page just says
   "If changing both the access and modification times to the current
time, `touch' can change the timestamps for files that the user running
it does not own but has write permission for.  Otherwise, the user must
own the files."

OK, I suppose legally it mentions my case, but not too explicitly.
Anyway, I suppose the Linux system allows this on purpose.

I mean with my split personality, I need all the protection I can
against myself.  OK, never mind.
-- 
http://jidanni.org/ Taiwan(04)25854780



Reply to: