scp/sftp umask

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Chris Gehlker
Date:  
Subject: scp/sftp umask
On Feb 5, 2004, at 9:58 AM, Craig White wrote:

> On Thu, 2004-02-05 at 09:10, Chris Gehlker wrote:
>> On Feb 5, 2004, at 8:44 AM, Craig White wrote:
>>
>>> actually WinSCP3 has preferences that allow you to set default umask
>>> (as
>>> much as may be permitted by the umasking features of the host system)
>>> and I have left these preferences unset deliberately
>>
>> I don't think you *can* leave them unset. You just get the defaults.
> ---
> ok - if you look back at my original message...


[snip example showing that Unix scp behaves like WinSCP]

OK I see the problem but I still don't understand why you expect umask
to have any effect on scp. The man page for rcp says that umask effects
the destination mode in the absence of the -p option but the man page
for scp makes no such claim. It would be *nice* if scp worked just like
rcp except for security but I can't find any place where that claim is
made.