ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Loughran <ste...@apache.org>
Subject Re: SCP Task & umask
Date Mon, 03 Sep 2007 11:29:32 GMT
Atsuhiko Yamanaka wrote:
> Hi,
> 
> 2007/8/31, Anderson, Rob (Global Trade) <Rob.Anderson@nike.com>:
>> 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.
> 
> I have not tried it by myself yet, but it seems scp1 protocol allows
> us to choose
> the umask in sending files and creating directories.
> 
> In the class,
>   org.apache.tools.ant.taskdefs.optional.ssh.ScpToMessage
> the method 'sendFileToRemote' has explicitly chosen '0644'.

so we could extend ant to allow for umasks to be set? This could be very 
useful. I normally go in afterwards and chmod stuff -didnt know it could 
be done by scp itself.


> 
> As for the scp by sftp protocol, we will be able to use sftp's 'chmod'
> after uploading
> files.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 


-- 
Steve Loughran                  http://www.1060.org/blogxter/publish/5
Author: Ant in Action           http://antbook.org/

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


Mime
View raw message