Install doc and config.php permissions

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
cnymike
Power Poster
Power Poster
Posts: 446
Joined: Sun Jan 22, 2006 3:24 am

Install doc and config.php permissions

Post by cnymike »

In Install doc, it states that config.php should be changed to a read-only state (444) after installation.

On some shared servers, it is easily possible to browse other users home directories. It seems that by having config.php given read privileges for Group that this presents a security risk. Wouldn't it be more secure to set config.php to 400 or 404 rather than 444?

On the other hand, maybe I don't know what I'm talking about since permissions have always confused me.
User avatar
Sy
Forum Members
Forum Members
Posts: 95
Joined: Fri Aug 17, 2007 11:13 am
Location: UK

Re: Install doc and config.php permissions

Post by Sy »

I would suggest that this isn't common practice and if your host doesn't provide a secure site for you and its other customers I would find another host.

I wouldn't want my hard work being ripped off by anyone unless I grant them access.
cnymike
Power Poster
Power Poster
Posts: 446
Joined: Sun Jan 22, 2006 3:24 am

Re: Install doc and config.php permissions

Post by cnymike »

Well you may be right but of what use is it to provide read access to Group anyway? Why would Group need access of any sort to the config.php file?
User avatar
Sy
Forum Members
Forum Members
Posts: 95
Joined: Fri Aug 17, 2007 11:13 am
Location: UK

Re: Install doc and config.php permissions

Post by Sy »

I just checked my own site permissions and it also has group read permissions 644...although my host doesn't allow me to browse any other space other than my own.
Post Reply

Return to “Developers Discussion”