I've got the following setting:
There are several users /home/user1, /home/user2, and so on. Additionally there is a user /home/sftp-all. The folder /home/sftp-all/shared is mounted in every other users /home directory, e.g. /home/user1/shared. All users user1,user2,...,sftp-all are members of a group called 'sharegroup'.
Now the problem is, if one of these users (user1,...) writes into that folder, the new file is owned by the user and his primary group (e.g. user1:user1,..). Instead, i want it to be owned by user1:sharegroup. Any ideas how to solve this? Thank you in advance!