I just started running a LAMP server with an AMI from turnkeylinux.com.
It is running on AWS, all is well, pretty simple to just get things going.
Now, I want to host multiple sites on this server, and I've figured that out too. The place I really run into problems with is giving users appropriate access to via SFTP.
I can create a user than can log in, but can't figure out how to actually let them change certain files or folders in their home folder.
For example:
I am logged in as root, getting things set up. I create /var/www/site1.com and upload a bunch of files. I have set up my DNS and VHosts so that if I go to www.site1.com it works, excellent.
I have created a user named User1 and made them a member of the users group. and then done
chown -R User1:www-data /var/www
It seems to work, but I'm just not sure that this was the RIGHT was to do it. And is this how I should continue to manage the sites. It has made all of the files 755. I'm new to linux, so any advice on how to proceed is appreciated.