security - Linux SECURE WEB FILES:preferred file privileges for web files/directories -


what web (what html, shtml, css, js, pl, py, php , included php files) file permission highest security permission can give above files (where 755, 644) , directories(in localhost e.g.:www,www/css, home/gregor/.silly/.idonotwanttonamethatdirpasswordsbutthatsit)?

can remove -x 600 privileges on subdir .silly? know must not on www or www/css , suppose can not remove -x 600 on subsubdir .idonotwanttonamethatdirpasswordsbutthatsit?

is there difference if php file included in file , not called anytime directly? can set privileges in such files -x 644 or must 755 too?

is more secure put .passwords in out of web dir mean localhost path in 1 hidden sub dir or same if put in localhost/.ha/.whateversubdirpassword?

what privileges system check if can display/execute file when smbd computer accesses via net index.php or index.html? (and matter if server needs process file? mean .php ...) or put in group user belong - anonymous users have group id, lets "1111"? thanks, gregor slovenia


Comments

Popular posts from this blog

javascript - Bootstrap Popover: iOS Safari strange behaviour -

Magento/PHP - Get phones on all members in a customer group -

session - Logging Out Using PHP -