I am using scp to get files from a Windows systemr to a Unix system. The ssh server is on Windows. The problem is that the file permissions for files that come from Windows are 700. Can any one help out with how I can set permissions to anything else?
Change permissions with 'chmod'.
And you can try to use '-p' option to scp.
Regards
thanks for the suggestion. But I dont want to run chmod as this is in a program(binary) and app support will have to change the code. Are there any command line options that can be given?
We are already using scp -p.
Hi,
you can set your umask to define which permissions you have for your files ...
malcom
i already have umask set to 022, thats a no go.
I have come across a simliar problem and after lots of digging could not find a solution. In the end my only option was to do a chmod.
I had ssh server on a unix box and Putty (http://www.chiark.greenend.org.uk/~sgtatham/putty/\) client software on the Wintel box.
I had a batch file that would first do the scp (pscp) and then run plink(secure rlogin) which would execute a chmod on the transferred files.
blp001
thanx! we've come to the same conclusion. using chmod too.