MyBB Community Forums
[Security] CHMOD Issues? Unable To Change To CHMOD 644 or 744 - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: 1.8 Support (https://community.mybb.com/forum-175.html)
+--- Forum: General Support (https://community.mybb.com/forum-176.html)
+--- Thread: [Security] CHMOD Issues? Unable To Change To CHMOD 644 or 744 (/thread-223419.html)



CHMOD Issues? Unable To Change To CHMOD 644 or 744 - Serpius - 06-12-2019

Before I start... I am currently using a VPS setup. For more info, go HERE.

As I was reading through some of the threads and the MyBB docs, it was recommended to change all folders/files to CHMOD 644. 
(except for the ../uploads/avatars - that is/was always at CHMOD 777)

This morning, I had changed all folders/files to CHMOD 644 through my FTP program.

After that was completed, my attempt to log into my website resulted in a 500 page error. 

After that failure, I changed the CHMOD to 744 to make the website work. That did not work, I still got the 500 page error.

So, I changed the CHMOD to 777 and now the website is working.

Why can't I change the CHMOD to 644 to provide extra security?

Is it because I am using VPS instead of shared hosting? Or is it something else?


(MyBB mods, move this thread to the appropriate topical forum, if necessary)


RE: CHMOD Issues? Unable To Change To CHMOD 644 or 744 - labrocca - 06-12-2019

755 is what folders need. They need the execute bit. Files can be 644.


RE: CHMOD Issues? Unable To Change To CHMOD 644 or 744 - Crazycat - 06-12-2019

(06-12-2019, 07:15 PM)labrocca Wrote: 755 is what folders need. They need the execute bit. Files can be 644.
And it's not MyBB dependant, it's how *nix file system (and permissions) works.


RE: CHMOD Issues? Unable To Change To CHMOD 644 or 744 - Serpius - 06-13-2019

(06-12-2019, 07:15 PM)labrocca Wrote: 755 is what folders need. They need the execute bit. Files can be 644.

Aha! That's the difference there.

I will give that a try and report back here.

(06-12-2019, 09:36 PM)Crazycat Wrote:
(06-12-2019, 07:15 PM)labrocca Wrote: 755 is what folders need. They need the execute bit. Files can be 644.
And it's not MyBB dependant, it's how *nix file system (and permissions) works.

I do understand that this is not specific towards MyBB forum software, in fact, many CMS software can benefit from this.

However, many admins are not aware of this method of protecting their website files and this is one way of doing this.

My reason for posting this is trying to understand why 2 CHMOD methods did not work, but one did.

@labrocca gave a simple explanation for this.