Setting permissions while copying files using scp.
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Deepti_Kalra
Posted On:   Monday, September 26, 2005 01:39 AM

Hi




I am trying to copy some files to a remote machine using scp in the ANT script. The files on the local machine say have permission 755 but when they get copied to the remote server the file permission changes to 700. Is there any way I can control the file permissions while copying the files onto the remote server ?





Thanks

Re: Setting permissions while copying files using scp.

Posted By:   Christopher_Koenigsberg  
Posted On:   Monday, September 26, 2005 11:34 PM

Perhaps set the "umask" of the remote user, via their ".profile" or some init file like that (depends on the default shell).


About | Sitemap | Contact