Subject: Re: seetting umask with scp
To: David Brownlee <firstname.lastname@example.org>
From: Andrew Brown <email@example.com>
Date: 10/18/2001 11:55:45
> If your source permissions are right you could use -p, otherwise
> I think you're right.
you have two options.
(1) as david suggested, use scp -p and set the permissions on the
local side to be what you want on the remote side.
(2) tweak your shell startup script(s) on the remote side (.profile or
.cshrc or .bashrc or whatever) to set your umask there to something
that will allow the mode to end up the way you want. note that this
won't *add* extra bits (so a 644 file will be at most 644 on the
remote system), it will only subtract bits (so a 664 file going to a
remote system with the umask set to 022 will end up as 644).
|-----< "CODE WARRIOR" >-----|
firstname.lastname@example.org * "ah! i see you have the internet
email@example.com (Andrew Brown) that goes *ping*!"
firstname.lastname@example.org * "information is power -- share the wealth."