permissions

From Noah.org
Revision as of 14:43, 22 June 2011 by Root (talk | contribs) (Created page with 'Category:Engineering == File permissions for web/wiki pages == These permissions give everyone at least '''read''' access. The user and the group can '''write''' and delete…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search


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.

Directories
drwxrwxr-x 775
File
-rw-rw-r-- 664

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 . -type d -exec chmod 775 {} \;
find . -exec chmod a+r {} \;