{{indexmenu_n>10}}
====== Setup file & folder-permissions ======
**Setup file & folder-permissions autom. by using a shell script** \\
Docu: -- \\
Forum: [[http://forum.phpwcms.org/viewtopic.php?p=87560#p87560|Small Script to set rights right]]
**Autor:** arminius -> // treated: [[http://planmatrix.de|K.Heermann]] (flip-flop) (07.05.09)// \\
**CMS-Version:** >= V1.x.x \\
**Version:** V1.0 //18.05.07// \\
**Condition:** -> shell script must be executable
\\
**Options:**
* Setup file & folder-permissions autom. by using a shell script
#!/bin/sh
if [ -z "$1" ]; then
echo "Usage: $0 Phpwcms-Verz.";
else
chmod 777 $1/upload
chmod 777 $1/filearchive
chmod 777 $1/filearchive/can_be_deleted
chmod 777 $1/template
chmod 777 $1/template/template_lang
chmod 777 $1/content
chmod 777 $1/content/images
chmod 777 $1/content/gt
chmod 777 $1/content/form
chmod 777 $1/content/rss
chmod 777 $1/content/tmp
chmod 777 $1/content/pages
chmod 666 $1/setup/setup.conf.inc.php
chmod 666 $1/template/inc_css/frontend.css
chmod 666 $1/config/phpwcms/conf.indexpage.inc.php
chmod 666 $1/template/inc_default/startup.php
fi
==== General view ====
+-------------------------------------------------------------------------+
| CHMOD all files (Dateien) -> Alle |
+----------------+-------------------+-----------------+------------------+
| Permission | Owner (Besitzer) | Group (Gruppe) | Other (Andere) |
+----------------+-------------------+-----------------+------------------+
| READ | X | X | X |
+----------------+-------------------+-----------------+------------------+
| WRITE | X | | |
+----------------+-------------------+-----------------+------------------+
| EXECUTE | | | |
+----------------+-------------------+-----------------+------------------+
| | 6 | 4 | 4 |
+----------------+-------------------+-----------------+------------------+
+-------------------------------------------------------------------------+
| CHMOD all folders (Verzeichnisse) -> Alle |
+----------------+-------------------+-----------------+------------------+
| Permission | Owner (Besitzer) | Group (Gruppe) | Other (Andere) |
+----------------+-------------------+-----------------+------------------+
| READ | X | X | X |
+----------------+-------------------+-----------------+------------------+
| WRITE | X | | |
+----------------+-------------------+-----------------+------------------+
| EXECUTE | X | X | X |
+----------------+-------------------+-----------------+------------------+
| | 7 | 5 | 5 |
+----------------+-------------------+-----------------+------------------+
+-------------------------------------------------------------------------+
| CHMOD files and folders executable (Dateien und Verzeichn. ausfuehrbar)|
| -> /upload, /filearchive, /template, /content, /content/* |
+----------------+-------------------+-----------------+------------------+
| Permission | Owner (Besitzer) | Group (Gruppe) | Other (Andere) |
+----------------+-------------------+-----------------+------------------+
| READ | X | X | X |
+----------------+-------------------+-----------------+------------------+
| WRITE | X | X | X |
+----------------+-------------------+-----------------+------------------+
| EXECUTE | X | X | X |
+----------------+-------------------+-----------------+------------------+
| | 7 | 7 | 7 |
+----------------+-------------------+-----------------+------------------+
+-------------------------------------------------------------------------+
| CHMOD |
| -> setup.conf.inc.php, conf.indexpage.inc.php, startup.php, |
| frontend.css |
+----------------+-------------------+-----------------+------------------+
| Permission | Owner (Besitzer) | Group (Gruppe) | Other (Andere) |
+----------------+-------------------+-----------------+------------------+
| READ | X | X | X |
+----------------+-------------------+-----------------+------------------+
| WRITE | X | X | X |
+----------------+-------------------+-----------------+------------------+
| EXECUTE | | | |
+----------------+-------------------+-----------------+------------------+
| | 6 | 6 | 6 |
+----------------+-------------------+-----------------+------------------+
0 -> (None) ---
1 -> Execute --x
2 -> Write -w-
3 -> Write, Execute -wx
4 -> Read r--
5 -> Read, Execute r-w
6 -> Read, Write, rw-
7 -> Read, Write, Execute rwx