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:[EMAIL PROTECTED] > 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: [EMAIL PROTECTED] For > additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]