There are 2 users
sftp_user
apache
Both users belong to the updaters
group as well as other groups.
New directories and files are created in the /updates/
directory.
drwxrwsr-x 8 sftp updaters 4096 Feb 27 16:12 updates
The /updates
directory has the sticky bit set to the updaters
group.
chmod g+s /updates
In this scenario, sftp can create new directories and files using SFTP. However, when apache tries to create new directories and files, permission is declined.
How can I make it so both users (in the group updaters
) can create new directories and files?