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

Author Message
Fer

Guest


Hi!!

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
Advertisements
martin◆
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26711
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
Guest




ok..

thanks Laughing
Twilight

Guest


martin wrote:
...These permissions are used only, if -p parameters is used. Otherwise default permissions (as defined by server) are used. ...


I was just wondering which server - source or destination?

Many thanks in advance,
DT
martin◆
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26711
Location: Prague, Czechia
Twilight wrote:
I was just wondering which server - source or destination?

When uploading, the source is a client and the destination is a server.
Advertisements

You can post new topics in this forum

Search

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