bug-coreutils
[Top][All Lists]
Advanced

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

can touch(1) readonly files


From: Dan Jacobson
Subject: can touch(1) readonly files
Date: Tue, 13 May 2003 03:10:58 +0800
User-agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i386-pc-linux-gnu)

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 via email to

[Prev in Thread] Current Thread [Next in Thread]