Re: [CentOS] how to make centos safty(php+mysql)

2011-02-28 Thread James Hogarth
> > as someone else said, directories need 'execute' privilege (which really > means permission to list the dir). Not quite... +r allows listing of the directory and +x allows traversing (cd) into/through the directory. James ___ CentOS mailing list Cen

Re: [CentOS] how to make centos safty(php+mysql)

2011-02-28 Thread John R Pierce
On 02/28/11 7:51 AM, Yang Yang wrote: > hi,every > > i have a php project and use centos to go > > and how to make folder's privilage and make it saft > > like: /home/htdocs/test > > chown -R www:www /home/htdocs/test > bad idea, the webserver should NOT own or have write access to web files. >

Re: [CentOS] how to make centos safty(php+mysql)

2011-02-28 Thread Cameron Kerr
On 1/03/2011, at 4:51 AM, Yang Yang wrote: > hi,every > > i have a php project and use centos to go > > and how to make folder's privilage and make it saft > > like: /home/htdocs/test > > chown -R www:www /home/htdocs/test > > chmod -R 644 /home/htdocs/test Almost correct, but directories a

[CentOS] how to make centos safty(php+mysql)

2011-02-28 Thread Yang Yang
hi,every i have a php project and use centos to go and how to make folder's privilage and make it saft like: /home/htdocs/test chown -R www:www /home/htdocs/test chmod -R 644 /home/htdocs/test etc thanks very much ___ CentOS mailing list CentOS@ce