Difference between revisions of "permissions"

From Noah.org
Jump to navigationJump to search
m (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…')
 
 
Line 3: Line 3:
 
== 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.
+
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'''.
  
; Directories: drwxrwxr-x 775
+
; Upload Directories: drwxrwxr-x 775
; File: -rw-rw-r-- 664
+
; 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.
 
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.
 
<pre>
 
<pre>
find . -type d -exec chmod 775 {} \;
+
find images -type d -exec chmod 775 {} \;
 +
find . -type d -exec chmod 755 {} \;
 
find . -exec chmod a+r {} \;
 
find . -exec chmod a+r {} \;
</pre>
 
 
</pre>
 
</pre>

Latest revision as of 14:49, 22 June 2011


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 {} \;