I have a Linux server that runs 10 of our websites. We have 1 webmaster who designs all of them. Here is the current config but it seems as if there has to be a better way. Right now I have /websites folder with each website as a sub directory. (/websites/company1, /websites/companyb, etc) Now, in order to give her access to upload her new files using an FTP account, I had to just give her access to the root "/websites" folder as her default home directory. Because in order for her to be able to access each site under it I have 2 options. 1 - setup a different login for each website with that as the default folder OR the current way I have it which gives her access to all and then she has to choose which one I'm looking for.
Now, What I'd like to do is this. Is there a way that depending on which site she requests such as
ftp.company1.com that it will put her in company1 folder, then if she goes to
ftp.company2, then it puts her right into company2 folder and so on... ? So she can have 1 username 'webadmin' and depending on which site she requests, then put her in the appropriate folder ? If not, how are others doing this ? Best practice ? Thank you so much as I am pretty new to this.
I
Start Free Trial