[Top][All Lists]

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

Re: Coreutils-gotchas

From: Bernhard Voelker
Subject: Re: Coreutils-gotchas
Date: Thu, 17 Dec 2015 08:04:36 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0

On 12/16/2015 07:52 PM, Pádraig Brady wrote:
> On 16/12/15 18:45, Assaf Gordon wrote:
>> The recent "touch -d yesterday" might be a 'gotcha'
>> ( ) .
>> Something like:
>>    On GNU/Linux, "touch -d now" requires only write permissions to a file,
>>    while "touch -d [SPECIFIC-DATE]" requires file ownership or root 
>> permission
>>    (and similarly, "touch -t").
> That's a Linux gotcha if anything.
> I fear the page will get too noisy/large if including such system policies.

And it's already documented in the Texinfo manual:

     When setting file timestamps to the current time, `touch' can change
  the timestamps for files that the user does not own but has write
  permission for.  Otherwise, the user must own the files.

Have a nice day,

reply via email to

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