Topic "how can copy with pscp and modify the permissions?"

Author Message



im writting a perl program (in windows) that use the pscp for upload my files generates in it.

it works perfectly , but when i would see the pages, i can't because the files don't have the permissions

how can i upload the files generated to the server with the corrects permissions.

thanks a lot!!!

(sorry by my english) Rolling Eyes
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
It is not possible. If PSCP is running in SCP mode, it sends 0644 permissions. These permissions are used only, if -p parameters is used. Otherwise default permissions (as defined by server) are used. If PSCP is running in SFTP mode, default permissions are used always.

Have you tried writing script for PSFTP, if SFTP is an option? PSFTP have command chmod.
Martin Prikryl


thanks Laughing

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