This is a follow up to my previous rather dumb question about adding a FTP user for one of my clients... original question here.
I'm running a Linux2 instance on AWS. I have a number of site running on the server, some of which are wordpress.
One of clients wants FTP access to their site.
In my previous question it was suggested I use Groups to solve this. I followed a tutorial elsewhere for creating a user, a group and setting permissions. I did the following:
useradd thisSiteFTP
passwd thisSiteFTP
groupadd thisSiteUsers
usermod -a -G thisSiteUsers thisSiteFTP
chown -R :thisSiteUsers /var/www/thisSiteHomeDir
chmod -R g+w /var/www/thisSiteHomeDir
chmod -R o-x /var/www/thisSiteHomeDir
chgrp -R thisSiteUsers /var/www/thisSiteHomeDir
so, I created a user and a group, and assigned the user to the group. I then gave ownership of the home directory to this group.
unfortunately, at this point, when I tried to FTP to using thisSiteUsers credentials I get 'Connection refused by server'. Also, the website no longer displays, I get a 'you don't have permission' error.
I changed the owner of the directory back to 'apache' and the site came back online.
I'm sure I'm missing something obvious and easy. Any suggestions to what I'm doing wrong?