ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anderson, Rob (Global Trade)" <Rob.Ander...@nike.com>
Subject RE: SCP Task & umask
Date Thu, 30 Aug 2007 16:44:58 GMT
The default umask is determined by the ssh server. I think it is set at
compile time. Same with $PATH. Your .bashrc is not read when you use
scp. You should see the same results when using scp on the command line.

-Rob Anderson

> -----Original Message-----
> From: Eric Jain [mailto:Eric.Jain@isb-sib.ch] 
> Sent: Thursday, August 30, 2007 8:45 AM
> To: user@ant.apache.org
> Subject: SCP Task & umask
> 
> According to 
> http://ant.apache.org/manual/OptionalTasks/scp.html, "File 
> permissions are not retained when files are copied; they end 
> up with the default UMASK permissions instead". That would 
> suite me just fine: I'm copying files from a Windows machine 
> to a Linux machine, where I have `umask 0007` in my .bashrc. 
> However, the files always end up with
> -rw-r----- instead of -rw-rw----, as I would expect, and if I 
> set umask 0000 I get -rw-r--r-- (so it does appear to be 
> picked up). Any ideas?
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For 
> additional commands, e-mail: user-help@ant.apache.org
> 
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message