> > You can try putting the umask
> > statement in the user's .kshrc or .bashrc file in
> > stead of in .profile
> 
> Thanks for the reply, but these files are ignored
> when you login via SCP. 
> 
> Does anyone else know how to override the umask when
> connecting to a solaris box via SCP?

The one thing I see offhand is that using the -p option with scp should cause 
the
original permissions to be preserved; otherwise, scp uses whatever umask
it inherits (from the calling program on the local side probably, or from sshd 
on
the remote side?); Sun's sshd I think uses UMASK= from /etc/default/login,
or defaults to 022 if that isn't set.

That's all from a _very_ quick look at the code...I don't claim I got it right,
and I didn't look at sftp.
 
 
This message posted from opensolaris.org

Reply via email to