permissions
From Noah.org
Revision as of 14:49, 22 June 2011 by Root (talk | contribs) (→File permissions for web/wiki pages)
File permissions for web/wiki pages
These permissions give everyone at least read access. The user and the group can write and delete files. For directories you must give execute access to others and group; otherwise, the web server will not serve pages under those directories. For upload directories, such as images for a wiki, ou must give write access to group.
- Upload Directories
- drwxrwxr-x 775
- Directories
- drwxr-xr-x 755
- Files
- -rw-r--r-- 644
Beware, this may expose files to the public that you d not want accessible. This should not make files publicly mutable that were not already mutable. Make sure you trust the group owners of subdirectories. In general, this is the normal situation for web servers -- you give the web server at least group access.
find images -type d -exec chmod 775 {} \; find . -type d -exec chmod 755 {} \; find . -exec chmod a+r {} \;