Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

set times: Operation not permitted

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 ?

like image 580
Bhanu Pratap Singh Avatar asked Sep 09 '15 14:09

Bhanu Pratap Singh


1 Answers

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.

like image 78
Bhanu Pratap Singh Avatar answered Oct 14 '22 04:10

Bhanu Pratap Singh