I need to overwrite a remote file that isn't owned by me, but I'm member of its group. The file has write permission for group. After transfer I get a message like "Upload of file <filename> was successful, but error occurred while setting the permissions and/or timestamp"

On some systems, you need to be an owner of the file (write permissions are not enough) to modify its permissions or timestamp. To overwrite file, you do not own, on such systems, you need to turn off Set permissions and Preserve timestamp options or turn on Ignore permission errors.

Advertisements:

Note that you cannot disable preserving timestamp for synchronization, unless you turn off Modification timestamp comparison criteria.

When using scripting, add -nopreservetime and -nopermissions switches to put command.

When using .NET assembly, set TransferOptions as follows:

TransferOptions transferOptions = new TransferOptions();
...
transferOptions.FilePermissions = null; // This is default
transferOptions.PreserveTimestamp = false;
 
  faq_not_owner.txt · Last modified: 6 Dec 2012 by prikryl
 

Search Documentation

This page

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

Associations

Kyplex Cloud Security Seal - Click for Verification

Site design by Black Gate