On 2014-10-20, bad sector <forgetski@postit_INVALID_.gov> wrote:
> On 10/19/2014 03:59 PM, Richard Kettlewell wrote:
>> bad sector <forgetski@postit_INVALID_.gov> writes:
>>
>>> I'm getting an rsync eror message:
>>>
>>> receiving file list ...
>>> 85 files to consider
>>> rsync: failed to set times on "/0/sa14/comp/fix-os131/moz/moz-i586/.":
>>> Operation not permitted (1)
>>>
>>> The path shown
>>>
>>> /0/sa14/comp/fix-os131/moz/moz-i586/
>>>
>>> is a data path read-write by all so I'm at a loss for what is 'not
>>> permitted'.
>>
>> I would guess that you are running rsync as some user other than the
>> owner of the directory.
>
> The owner was root, the group was users and read-write was unrestricted
> all around i.e. owner, users and group. I ran the script as user u3 who
> is a member of group users also.
A user (U3) CANNOT change permissions or times on a file owned by root.
It also cannot change ownership of that file. Ie, if you are going to
transfer files owned by root, the runner of the script needs to be
root.
>
> To TS I changed the owner to user u3 and ran the script again and
> although there were only a few files to download the error did not recur.
Correct.
>
> So, why would read-write permission by all be insufficient? I mean if
Because a user cannot change the ownership of a file away from himself
(a HUGE security hole otherwise) and cannot change the attributes of a
file not owned by himself (for the same reason).
> the files are being written and deleted then why would the timestamp of
> a file that has just been downloaded by the same script be impossible to
> overwrite? On the other hand if the timestamp in question is that on
> some existing files and not on downloaded ones then why would they need
> to be written to at all?
It is on a downloaded file.
>
>