I'm stuck. I've nearly got my MBWE functioning perfectly for my situation. The only sticking point is how do I change the permissions of files written over SFTP to 775. I think I need to change umask to 002 to make it work, but I can't find where to change it. I've tried calling a script from /etc/profile, but that doesn't work. I've tried setting umask directly in /etc/profile but that also doesn't work. It works fine if I login over SSH, but not if I get in via WinSCP or RedDrive.
I've got it working fine for Samba,
Does anyone know where I need to go to set umask for SFTP?