Dir Permissions

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Scam Warning
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
Locked
taurus87
Registered User
Posts: 2
Joined: Tue Aug 04, 2009 4:05 pm

Dir Permissions

Post by taurus87 » Tue Aug 04, 2009 4:09 pm

Just a simple query I have. The /cache, /files and /store directories need to have a mode of 0777. Is this not a security exploit?

User avatar
stevemaury
Support Team Member
Support Team Member
Posts: 50812
Joined: Thu Nov 02, 2006 12:21 am
Location: The U.P.
Name: Steve
Contact:

Re: Dir Permissions

Post by stevemaury » Tue Aug 04, 2009 4:22 pm

No, it is not.
For REALLY good and VERY inexpensive hosting CLICK HERE

I can stop all your spam. I can upgrade or update your Board. PM or email me. (Paid support)

taurus87
Registered User
Posts: 2
Joined: Tue Aug 04, 2009 4:05 pm

Re: Dir Permissions

Post by taurus87 » Tue Aug 04, 2009 4:26 pm

stevemaury wrote:No, it is not.
Could you provide a little more detail please? :)

Roberdin
Registered User
Posts: 203
Joined: Sun Nov 24, 2002 3:56 pm
Location: London, United Kingdom

Re: Dir Permissions

Post by Roberdin » Tue Aug 04, 2009 5:21 pm

Typically (almost invariably, I suspect), the PHP process runs in a different user account and group to the user who owns the directory. Thus, the permission has to be xy7 (where x is the owner's permission, y is the owner's group's permission, and 7 is the "everybody else" permission).

Now, of course, PHP has to be able to read the directory contents, and write to them. Hence that means it needs to be set to '7'.

Note, of course, this does not mean that anyone in the world can edit or view these files: only users logged in to the server.
Roberdin

Locked

Return to “[3.0.x] Support Forum”