Force sftp file creation permissions

view full story

http://serverfault.com – I have several users transferring files over via sftp. I have a umask set to 0002, but the files some transfer over are 440. Umask only limits the permissions and so doesn't help when the files are more restricted than the umask. Is there a way to force sftp to create files with write permissions, e.g. 660? As a last resort, I am going to write a cron job that fixes the permissions, but that seems a bit ugly. (HowTos)