2 articles File Permissions

File Permission category have posts related to granting correct set of permission on files residing on server. How to grant file permissions, their related security concerns, etc. is well described.

Prevent access to files in a directory using file type and htacess – all about website security

This is a simple example illustrating the use of htaccess to block access of files based upon certain file types. 1. Prevent access of .php files in a directory. Create a file .htaccess inside the folder/directory where you do not want the .php files to be invoked or called or executed. Now place the following…

Changing File Permissions

On computer filesystems, different files and directories have permissions that specify who and what can read, write, modify and access them. Permission Modes 7 5 5 user group world r+w+x r+x r+x 4+2+1 4+0+1 4+0+1 = 755 The permission mode is computed by adding up the following values for the user, the file group, and…