Topic "scp copy fails when overwritting"

Author Message
altp

Guest


When trying to over write a file, using the scp protocol, that you are not the owner of the copy dies with "Operation Not Permitted" when it tries to set the mode. Once this error occures it begins giving errors about reading the directory.

The user has permissions to the file. The work around is to first delete the file and then upload it again. Which is annoying.

Normal scp from a unix commandline overwrites the file as expected for that user.

Changing the ownership of the file to that user before uploading also fixes that problem.

To fix the directory errors, the user has to reconnect tot he server.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Please post a log file, I'm interested in the directory reading error.

To avoid "Operation not permitted" error, uncheck "set permissions" on upload confirmation dialog.

Or use SFTP instead of SCP.
_________________
Martin Prikryl
Advertisements

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!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License