I'm setting up a shared server on Ubuntu 14.04 for my team to be able to upload files to be served via Apache. I'd like to give each user an SSH/SFTP login that they can use to upload files via SFTP, SCP, rsync, SSH, etc.
I keep running into permission issues where new files and folders within the shared folder are not group writable. I've tried several solutions including setting the UMASK and even using ACL - my conclusion has been that the files maintain the permissions from the source machine when uploaded to the server.
My question is: What is the generally accepted best practice for doing this, short of giving everyone a single login to the server? This can't be that complicated, just having a folder (e.g., /var/www/html
) where multiple users in a group can edit everything. I see it happen on crappy hosts like our old GoDaddy shared hosting all the time, where you can go into cPanel and set up multiple users with access to the webserver directory.
Thanks - server admin newbie here! I've spent several hours trying to resolve this issue.