How do I make SCP respect umask ?
I've tried adding this
Subsystem sftp internal-sftp -u 0002
in /etc/ssh/sshd_config
and
session optional pam_umask.so umask=0002
in /etc/pam.d/sshd
Any other things to try?
each time scp creates the file as 644 instead of 664 as the umask would suggest