2
1
As I send a file via SFTP to a windows server. When I do this,the default file permission will be 640.
there we have a scheduler task which will run on a particular time to grab the files. Due to the file permission 640, it can't access the file.
Both sftp user and the scheduler both are same use( i.e xmfer).
Is there any way to change the file permission of the file on the above scenario ?
2What do you use to do SFTP? I used PSFTP (part of the PuTTY bundle) and they can do chmod to change the file permission. And also why would you have this issue when putting the file into Windows Server as to my knowledge file permission 640 is for unix-bound file, or am I missing something? – Darius – 2013-12-10T04:25:49.053
+1 to Darius, Piece of cake under Linux. Too bad you have to stick to windows SFTP server. – xpt – 2013-12-10T04:32:58.370
If the SFTP server supports POSIX ACL 1 2, you can also define default access rights on directories so that newly created files in them will have these access rights.
– pabouk – 2013-12-11T11:08:29.030