I found very similar questions (like this), but I could not find a solution that applies to my situation.
I need to give an external developer access to one of the hosted website on the machine. The directory structure is this:
apache apache 4096 Jan 23 16:13 /var/www/website-alpha.com/public_html
apache apache 4096 Aug 7 21:22 /var/www/website-omega.com/public_html
The new user should ONLY be able to access (edit, create and delete files) the second directory from the list above. He must not see anything above.
Plus, I should be able to login via terminal or SFTP client (FileZilla, Transmit, etc...)
The server has CentOS
7 with httpd
. Any hint? I literally spent hours googling...