Topic "Script should change the permission of those files which I a"

Author Message


I am transferring few html files from windows to UNIX box

Following is my script
option batch abort
option confirm off
lcd "C:/ganesh/Applications/RnA/APACScript/html"
cd /app/securities/corr/config/mydomain/applications/distribution/researchprofiles/nonresearch
put *.html
chmod 777 *.html

On UNIX box other user has also placed his HTML. so Script can not change permission of these files.
My reuirement is: Script should change the permission of those files which I am transferring.

Currently I am getting error Cannot change properties of file 'Mobile_Edition.html'.
Permission denied.
Error code: 3
Error message from server: Permission denied
Request code: 9

because these files are belongs to other user.
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24755
Location: Prague, Czechia
You need to be an owner of the files to have permissions to change their properties.
Martin Prikryl

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