There is a hardcoded umask(022) call right at the beginning of ssh.c:main(). The getuserattr() system does not exist in Linux, so there is no way to predefine other umasks for scp (scp does not evaluate .bashrc etc.). E.g. I would like to define umask(002) to that uploaded files are group writable. I understand the umask(022) might be important in some cases (setuid root), but I also think there should be a switch to turn that off and just continue with the previous process umask. Either in the config file or as a command line switch. Wolfgang
need to think about this. there are other permission issues such as pid file created with 666 perms by sshd.
Incorrect: scp does load .bashrc or whatever shell initalisation your shell uses for non-interactive sessions. You can set umask there.
Mass change of RESOLVED bugs to CLOSED