Quote:
Originally Posted by chrism01
chmod g+s dirname
enforces ownership of all files created therein to have group owner same as group owner of dir.
|
Perfect. I knew that it had to be easy.
Setting up the users umask to give the group write permissions (0002) was not so easy.
There are plenty of ways to do it for ssh but for sftp i didn't find an obvious way.
I presume that pam is the correct way to go but i couldn't get it to work.
In the end i created a wrapper script that sets the users umask before invoking the sftp-server and pointed the Subsystem sftp line to this script in /etc/ssh/sshd_config.
If anyone has an cleaner way of setting up the default sftp umask on debian i would be interested to hear about it.