title: How to set default group permissions for SFTP uploads?
body: <p>I am connecting to a web server running Debian. Our team uses Apache and all users are members of the www-data group. When we connect to this server via SFTP (e.g. Transmit), all of our newly uploaded files take on a group name that is the same as the user's name (i.e. their primary group).</p>
  
  <p>Is there a way to change this default group assignment to www-data on SFTP? On the command line, one can type:</p>
  
  <p>$ newgrp www-data</p>
  
  <p>Which assigns the current user's primary group to www-data. All new files created by the user are assigned to this group. Is there an equivalent for SFTP?</p>