7

In WinSCP, If you have opened a file from the server on your local and on making changes and pressing (Ctrl + S), basically saving it, you get an error saying:

/path of the file/ set times: Operation not permitted

And whenever you are saving the file, the error keeps on getting queued up due to which the files are not saved on the server end.

And in the end to save the files you will have to press OK on all of the dialog boxes one by one.

Why is it occurring ? How to tackle this problem ?

Neuron
  • 5,141
  • 5
  • 38
  • 59
Bhanu Pratap Singh
  • 1,017
  • 1
  • 12
  • 15

1 Answers1

21

This problem is occurring because WinSCP tries to preserve the time-stamp of the file, which in a way is a good thing as you will know which file is the latest.

But if you have set some restrictions on the server end, which is highly likely, the server will deny it and the error will appear.

To tackle the problem:

  • Transfer Settings -> Configure
  • A preferences box will open
  • Double Click on Default
  • Uncheck Preserve Timestamp

or

  • Options -> Preferences
  • A preferences box will open
  • Click on Transfer
  • Double Click on Default
  • Uncheck Preserve Timestamp

See http://winscp.net/eng/docs/ui_transfer_custom

And now it will work and you won't see any errors. The only problem was occurring because of the synchronization of the file's timestamp.

Martin Prikryl
  • 188,800
  • 56
  • 490
  • 992
Bhanu Pratap Singh
  • 1,017
  • 1
  • 12
  • 15
  • 1
    With second option you could also set "[x] Ignore permission errors", so WinSCP will at least try to set timestamp but not bug you with an error message anymore. – Stefan Dec 05 '18 at 12:36