Ignore permission error – when running from script

Advertisement

user33
Guest

Ignore permission error – when running from script

We currently use WinSCP 4.0.3 in script form to place transmit numerous files to external servers.

This has been running fine, until this morning, when I added a new job.

The error received is:
Upload of file 'test.csv' was successful, but error occurred while setting the permissions and/or timestamp. If the problem persists, turn on 'Ignore permission errors' option.
I just want to ignore this error, the file goes ok – I just need a switch to use at command line in a script which ignores?

Thanks

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,440
Location:
Prague, Czechia

Re: Ignore permission error - when running from script

As covered in:
Transfer was successfully finished, but temporary transfer file … could not be renamed to target file name …
... you can use -nopreservetime and -nopermissions switches to put command.

If you really want to enable the "Ignore permissions error", see
How do I configure site, transfer and/or any other settings for which there are no script commands?

Reply with quote

cdlvj
Joined:
Posts:
13

I have hit this same error, 1st time in many months.
What can the client at the server end do to prevent this error?

All our clients have it set correctly except for one.

Reply with quote

martin
Site Admin
martin avatar

@cdlvj: The file must be owned by the user who is overwriting it. It is not enough to have write permissions to update timestamps and/or set permissions.

Reply with quote

Advertisement

Psi, Inc
Guest

Using Version 4.2.9 Build 938, I was having the same problems until I added the
-nopermissions and -nopreservetime. Worked like a charm after that.

Reply with quote

user123
Guest

We're using Version 4.0.4 Build 346, and have the same problem. Added -nopermissions and -nopreservetime does not work, error:
File or folder '-nopermissions' does not exist.
Any ideas?

Reply with quote

Advertisement

You can post new topics in this forum