MyBB Community Forums

Full Version: CHMOD setting for .js files 755 or 644?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
My current CHMOD setting for js files in jscript folder is 755. Recently my site was compromised and now i have weird code in my js files which i am removing.
All other files have CHMOD 644 file permissions only .js files have 755 So whats the recommendation 644 or 755?
CHMOD 644 is sufficient for the js files.
(2016-02-16, 09:59 AM).m. Wrote: [ -> ]CHMOD 644 is sufficient for the js files.

Thanks for the help .m Smile>
is there any plugin which checks if mybb core files etc are properly chmod ?
^ basically tools & maintenance section of forum admin panel reports CHMOD status for essential files & folders.

in general, folders are set with CHMOD 755 and php & js files with CHMOD 664 / CHMOD 644

see also required file permissions for MyBB forum