Reputation: 7647
why for the directories i creat getting rwx---rwx
and rw----r--
permisions for the files i create?
I cant access a folder by externally via url which have rwx---rwx permition but can access the file which have rw----r-- permision.
Even I change permision to rwxrwxrwx
i can not access the folder.
eg:
http://www.example.com/folder/
Gives me 403 Forbidden
Upvotes: 0
Views: 1980
Reputation: 360902
403 forbidden on a folder url usually means that your server has folder browsing disabled, and there's no default document (index.html, index.php, etc...) in the directory. Since there's no default content to server, and the configuration doesn't allow for browsing, you get the forbidden error.
Upvotes: 1
Reputation: 198217
That's probably a pre-caution of your webserver, that denies to offer files that have the executable bit (x
) set.
Check your servers documentation about the features it offers and which file permissions are needed to be set to make them work with your webserver.
Upvotes: 0