Hi - I have 

SSH Version OpenSSH_2.3.0p1, protocol versions 1.5/2.0.

on each end.

My question is, why does ssh not honor umask on the receiving end for a command?

like so:

ssh host "mkdir hi"

creates a directory "hi" on the remote host, mode 755. all umasks are set to be 002 
(this is for an internal network publishing system). /etc/profile, /etc/default/login 
all have umasks set to 002. 

while 

mkdir hi ; scp -r hi host:

keeps the modes as I would expect.

This was working fine until I "upgraded" to OpenSSH2.3.0p1. I have tried 
the/etc/sshrc, ~/.ssh/rc all do not have any effect. I have gone so far as to mess 
with the source code in scp.c and ssh.c with no effect. 

I suppose I could chmod the files/directories on the remote host, but I would rather 
not do that. That would be the last resort. 

what gives? is this a known bug? I have done some searching on google/av and did not 
come up with much. 
thanks for your help. 


Reply via email to