[Resolved] Wrong permissions cause 404 error instead of 403

Status
Not open for further replies.

stormy

Well-Known Member
#1
I've been having some errors that are related to this:
http://www.litespeedtech.com/suppor...d-permissions-issues-with-new-accounts.10076/

I had to run touch /var/cpanel/fileprotect on one of my servers, which fixed the permission problem on new accounts.

However, this has led me to notice that if a folder has wrong permissions (744 instead of 755 for this particular case), users get a 404 instead of a 403. This is confusing.

Is this how Litespeed is designed to work?
 

NiteWave

Administrator
#2
how about apache's behavior in this case, return 403 ?

744 is abnormal. since litespeed process running as nobody or apache, 744 will prevents litespeed enter the folder to read any static files include .htaccess. so this folder and all files under it is invisible to litespeed process, it's reasonable. not sure how apache handle such edge case and any document for such edge case.
 
Status
Not open for further replies.
Top