Simple Machines Community Forum

SMF Support => SMF 2.1.x Support => Topic started by: mr.Mo on January 24, 2023, 03:15:29 PM

Title: The correct chmods for maps and files smf 2.13
Post by: mr.Mo on January 24, 2023, 03:15:29 PM
Hello all,

Who knows the correct chmods for maps&files > smf.2.13 fresh install? 8)  :)

I read for maps 755 and for files 644, but this not always working because, setting and setting.backup must be writible says systeem, sometime when you made a upgrade, but 777 means everebody can change your file thats not ok?!

So afther your upgrade, your maps&files  must be back chmod to 755&644 so far i knowing, correct me if i m wrong!? 8)

Mabay a script can do this for us?  ???

--

I read, we can use 777 if you got a good hoster, because he block al not welcomed attacks, but wat to do if you hosting by yourself? ;D

Thanks for your time!





Title: Re: The correct chmods for maps and files smf 2.13
Post by: Kindred on January 24, 2023, 11:53:10 PM
If your system requires 777, then your host has php misconfigured.

However, smf has good security snd 777 should not be a hazard for any smf files.
Title: Re: The correct chmods for maps and files smf 2.13
Post by: mr.Mo on January 25, 2023, 02:13:26 PM
Hello Kindred,

Thanks for the tip, 8)  :)

I use php7.4 but can change this to php8.0,

When i do the install of smf2.13, i saw a install reading about the php use, forgotten, so thats the first i will try to correct it,

Shortly told, if have php correctly tuned, then Smf 2.13 can use 755 for maps and 644 for files?

Title: Re: The correct chmods for maps and files smf 2.13
Post by: Kindred on January 25, 2023, 05:09:30 PM
generally yes. 755/644 is sufficient for most installations  775/664 for almost all others....  777/666 is almost never needed
Title: Re: The correct chmods for maps and files smf 2.13
Post by: mr.Mo on January 27, 2023, 08:47:57 AM
Thank you! 8)  :)