How do I set default permissions for SFTP for an Ubuntu Server?

Posted by wag2639 on Server Fault See other posts from Server Fault or by wag2639
Published on 2010-06-12T18:28:00Z Indexed on 2010/06/12 18:33 UTC
Read the original article Hit count: 246

Filed under:
|
|
|
|

We have an Ubuntu 10.04 server. How can I set it so that new files created (or copied) over SFTP or SSH have g+rw and g+rwx permissions (where appropriate)?

I'm also using setgid (chmod g+s) so that they inherit the proper group owner.

© Server Fault or respective owner

Related posts about ubuntu

Related posts about ssh