Hi, I need help with permissions for a folder on a server for web hosting. The permissions should be secure but must allow for ftp also. It is a very basic question, please bear with me.
The web server is apache and the user and group for the web server is apache. Pureftpd is used for the ftp server. Now the domain1.com is being hosted in a folder called domain_1.com and domain2.com is being hosted in a folder called domain_2.com. Thinking of giving the following permission for the folders. permission user group folder drwxrwx--- domain_1.com domain_1.com domain_1.com drwxrwx--- domain_2.com domain_2.com domain_2.com drwxrwx--- domain_3.com domain_3.com domain_3.com Then apache will be member of groups, domain_1.com, domain_2.com and domain_3.com. Is this correct and secure? Is there another better way? P.V.Anthony