Topic "timestamp and permissions error - disable in script ?"

Author Message


I get the following error when running a schedule script file. I am not sure what is causing the problem. I do not know how I can turn off the permissions or the timestamp changes from withing the script or from the command line. Can you please:
a) tell me what the problem might be, and
b) tell me how to disable the relevant options ?

The command I run looks like this (I have changed paths and filenames below):

winscp3 /console /script=uuu.txt

Upload of file '' was successful, but error occurred while setting the permissions and/or timestamp. If the problem persists, turn off 'Set permissions' and/or 'Preserve timestamp' option.
No such file or directory.
Error code: 2
Error message from server: syserr: No such file or directory, file: yyy\ (en)
Request code: 9
(A)bort, (R)etry, (S)kip, Ski(p) all: Abort
Session 'zzz@vvv' closed.
No session.

Thank you - your software has been very helpful so far.
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
newbie wrote:
a) tell me what the problem might be, and

Please read FAQ.
b) tell me how to disable the relevant options ?

It can be disabled from GUI only.
Martin Prikryl

Thanks for the link to the FAQ entry - I did a search before posting but did not find that entry.

1. This script is running as a scheduled job. If I change the relevant options in the GUI, what do I need to do to make sure they will affect the console script?

2. Do I need to change the GUI so that it stores the settings in an .ini file? If so, can you please tell me where I can find an example .ini file - I looked in the WinSCP3 directory but didn't find one.


1. I connect to the server once from the GUI, so that the host's key is stored in the host key cache (using .ini storage).

2. I use the /ini option. I copy the .ini file from the WinSCP3 directory int a directory accessible to the job user. It now contains the relevant host key (see step 1).

3. Now the script runs okay when started by the job user account.

4. There are still errors due to permissions and time-stamp. Since I don't want the lose the time-stamp information, I did not want to disable these options. I was able to change the permissions on the target folder on the server so that the errors no longer occur. I also have the script delete (rm) the remote file before put-ing the new version.

You can post new topics in this forum

Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License