On Wed, Dec 3, 2008 at 11:52 PM, P.V.Anthony <[EMAIL PROTECTED]>wrote:
> 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? > > Hi Anthony, We can use ACL (Access Control List) for more elegant solution to this filesystem permission. man setfacl and getfacl. HTH, -- Cheers, Fajar Priyanto Linux tutorial http://linux2.arinet.org
_______________________________________________ Slugnet mailing list [email protected] http://wiki.lugs.org.sg/LugsMailingListFaq http://www.lugs.org.sg/mailman/listinfo/slugnet
