NAVIGATION
Setzen der Verzeichnis/Datei-Rechte autom. mit einem Skript
Docu: –
Forum: Kleines Script zum setzen der Rechte
Autor: arminius → aufbereitet: K.Heermann (flip-flop) (05.05.09)
CMS-Version: >= V1.x.x
Version: V1.0 18.05.07
Bedingung: → shell Skripte müssen ausführbar sein
Möglichkeiten:
#!/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
+-------------------------------------------------------------------------+ | 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