Best way to send files in this scenario.

Hi,

What is the best way to SECURE transfer files from Server1 to server 2 without passowrd (automatically).

Note: We want the other Ids on the server 2 to be able to have write access on the files that are sent to server2 from server1.

SCP (password less) is working fine but not all IDs on server 2 can modify the files that are sent to server2.

Appreciate your help on this, we are trying to find least work option so that we don't have to involve unix team.

Permissions on server2 are mostly independent from whatever method you used to transfer the files.

There are several factors that could affect the access: ACLs, umasks, user configuration, groups, sticky bits, GUIDs, mountpoint options, etc.

Maybe if you tell us more details on the exact issue you're having we could provide better suggestions.

First explain what permissions the files you can't modify have, and what you would like them to have. This may not be an scp problem. Directory permissions could keep them out just as easily, too.

Note that sftp uses the same protocol as scp, uses the same passwordless logins, and has a chmod command.

sftp username@host <<EOF
put localfilename destinationfilename
chmod 0660 destinationfilename
EOF