I uploaded a folder of new pages to my shared hosting account, refreshed the site, and got a 403 Forbidden on every single one of them. The files were all there. The HTML was fine. The paths were right. Nothing had changed in the code β only the permissions.
The upload had come from a zip file. I had extracted it in the file manager, and every folder it created came back with permissions 750 instead of 755. That one missing digit was the whole problem, and it took me longer than I would like to admit to spot it.
What 750 actually means
Unix permissions are three digits: owner, group, and everyone else. 755 means the owner can read, write and enter the folder, and everyone else can read and enter it. 750 means the owner and the group can, but everyone else gets nothing at all.
On shared hosting, that last digit matters more than people expect. Your files are owned by your account, but the web server process that serves them to visitors usually runs as a different user.β¦