Difference between revisions of "Setup:Installation Guide/Security Settings/File System Permissions"
← Setup:Installation Guide/Security Settings/File System Permissions
[unchecked revision] | [unchecked revision] |
Contents
For trouble-free usage of your BlueSpice installation, the web server requires write permissions to several folders of the file system. However, it is recommended to keep the rights for all other files and folders to a minimum. This document shows you the relevant folders and the correct permissions setting.
Tips for this Document[edit | edit source]
- Bitte lesen Sie diese Anleitung vollständig durch und arbeiten Sie die einzelnen Installationsschritte der Reihe nach ab.
- Beim Editieren von Konfigurationsdateien mit einem Texteditor müssen die Dateien in UTF-8 Kodierung ohne BOM Please, read this manual completely and work through the single installtion steps one after another.
- For editing the configuration files with a text editor, the files must be saved in UTF-8 coding without BOM (Byte Order Mark) gespeichert werden.
-
Der Platzhalter The placeholder
<installpath-bluespice>
steht stellvertretend für den Pfad zu Ihrer BlueSpice-Installation, z.B. stands for the path to your BlueSpice installation, e.gC:\inetpub\wwwroot\bluespice
(Windows) oder or/var/www/bluespice
(Linux).
Betreffende OrdnerAffected Folders[edit | edit source]
Die Ordner, auf die Schreibrechte erforderlich sind, lauten: The folders, which require write permissions, are:
-
<installpath-bluespice>
/cache -
<installpath-bluespice>
/images -
<installpath-bluespice>
/extensions/BlueSpiceFoundation/config -
<installpath-bluespice>
/extensions/BlueSpiceFoundation/data -
<installpath-bluespice>
/extensions/Widgets/compiled_templates (nur BlueSpice only BlueSpice pro)
Assignment of Permissions with Windows[edit | edit source]
Vergeben Sie für diese Ordner "Ändern"-Rechte für den lokalen User "Jeder" (bei englischsprachigen Systemen "Everyone")Assign "change" rights for this folder for the local user "Everyone".
Assignment of Permissions with Linux[edit | edit source]
Hier können Sie wesentlich strikter verrechten, was auch zu empfehlen ist. Übergeben Sie das Verzeichnis <installpath-bluespice>
rekursiv dem User root (CHMOD für Files 644, CHMOD für Directories 755) und übergeben anschließend die oben genannten Verzeichnisse rekursiv dem User und der Gruppe, unter der der Apache Webserver läuft (Debian/Ubuntu bspw. jeweils Here you can assign rights much more strictly, which is also recommended. Transfer the directory <installpath-bluespice>
recursively to the user root (CHMOD for Files 644, CHMOD for Directories 755) and after this, transfer the mentioned directory recursively to the user and the group, under which the Apache Web Server runs (Debian/Ubuntu e.g. "www-data").
Im folgenden stellen wir Ihnen ein Bash-Script zur Verfügung, das diese Arbeit für Sie mit nur einem Kommandozeilenbefehl übernimmt.
Legen Sie hierzu die Datei In the following, we provide a bash script, which works through this tasks for you with only one command.
To do so, create the file /usr/local/bin/chownWiki an und kopieren folgenden Code in diese: and copy the following code into this file:
#!/bin/bash WWW_USER="www-data" WWW_GROUP="www-data" if [ $# -eq 0 ]; then echo "You must enter the path of your MediaWiki installation." exit elif [ ! -d $1 ]; then echo "$1 does not exist or is no path." exit fi PATH=`echo "$1" | sed -e 's#/$##'` /usr/bin/find $PATH -type d -exec /bin/chmod 755 {} \; /usr/bin/find $PATH -type f -exec /bin/chmod 644 {} \; /bin/chown -R root:root $PATH pathes=( "$PATH/cache" \ "$PATH/images" \ "$PATH/extensions/BlueSpiceFoundation/data" \ "$PATH/extensions/BlueSpiceFoundation/config" \ "$PATH/extensions/Widgets/compiled_templates" \ ) for i in "${pathes[@]}"; do if [ -d $i ]; then /bin/chown -R $WWW_USER:$WWW_GROUP $i fi done
Ersetzen Sie bei Bedarf den Inhalt der beiden Variablen If needed, replace the content of the variables
WWW_USER="www-data" WWW_GROUP="www-data"
durch den für Ihre Distribution zutreffenden Benutzer und die zutreffende Gruppe.
Geben Sie dieser Datei anschließend den CHMOD 755. Nun können Sie auf der Kommandozeile mit dem Befehl with the approprate user and group of your distribution.
After this, assign CHMOD 755 to this file. Now you can run the script and let it do the complete permission setting automatically with the following command:
chownWiki <installpath-bluespice>
die komplette Verrechtung wie zuvor beschrieben automatisch vornehmen lassen.
{{DISPLAYTITLE:File System Permissions}} __TOC__ For trouble-free usage of your BlueSpice installation<span class="">, the web server requires write permissions to several folders of the file system.</span> <span class="">However, it is recommended to keep the rights for all other files and folders to a minimum.</span> <span class="">This document shows you the relevant folders and the correct permissions setting.</span> ==Tips for this Document== * Bitte lesen Sie diese Anleitung vollständig durch und arbeiten Sie die einzelnen Installationsschritte der Reihe nach ab. * Beim Editieren von Konfigurationsdateien mit einem Texteditor müssen die Dateien in UTF-8 Kodierung ohne BOM (Byte Order Mark) gespeichert werden. * Der Platzhalter <code><installpath-bluespice></code> steht stellvertretend für den Pfad zu Ihrer BlueSpice-Installation, z.B. Please, read this manual completely and work through the single installtion steps one after another. * For editing the configuration files with a text editor, the files must be saved in UTF-8 coding without BOM (Byte Order Mark). * The placeholder <code><installpath-bluespice></code> stands for the path to your BlueSpice installation, e.g <code>C:\inetpub\wwwroot\bluespice</code> (Windows) oder or <code>/var/www/bluespice</code> (Linux). ==Betreffende Ordner== Die Ordner, auf die Schreibrechte erforderlich sind, lauten:Affected Folders== The folders, which require write permissions, are: * <code><installpath-bluespice></code>/cache * <code><installpath-bluespice></code>/images * <code><installpath-bluespice></code>/extensions/BlueSpiceFoundation/config * <code><installpath-bluespice></code>/extensions/BlueSpiceFoundation/data * <code><installpath-bluespice></code>/extensions/Widgets/compiled_templates '''(nur BlueSpice only BlueSpice pro)''' ==Assignment of Permissions with Windows== Vergeben Sie für diese Ordner "Ändern"-Rechte für den lokalen User "Jeder" (bei englischsprachigen Systemen "Everyone")Assign "change" rights for this folder for the local user "Everyone".<br /><br /> [[Datei:Setup:Setup_windows_permissions.jpg|center]] ==Assignment of Permissions with Linux== Hier können Sie wesentlich strikter verrechten, was auch zu empfehlen ist. Übergeben Sie das Verzeichnis Here you can assign rights much more strictly, which is also recommended. Transfer the directory <code><installpath-bluespice></code> rekursiv dem User root (CHMOD für Files 644, CHMOD für Directories 755) und übergeben anschließend die oben genannten Verzeichnisse rekursiv dem User und der Gruppe, unter der der Apache Webserver läuft (Debian/Ubuntu bspw. jeweils "www-data"). Im folgenden stellen wir Ihnen ein Bash-Script zur Verfügung, das diese Arbeit für Sie mit nur einem Kommandozeilenbefehl übernimmt. Legen Sie hierzu die Datei recursively to the user root (CHMOD for Files 644, CHMOD for Directories 755) and after this, transfer the mentioned directory recursively to the user and the group, under which the Apache Web Server runs (Debian/Ubuntu e.g. "www-data"). In the following, we provide a bash script, which works through this tasks for you with only one command. To do so, create the file /usr/local/bin/chownWiki an und kopieren folgenden Code in diese:and copy the following code into this file: <pre>#!/bin/bash WWW_USER="www-data" WWW_GROUP="www-data" if [ $# -eq 0 ]; then echo "You must enter the path of your MediaWiki installation." exit elif [ ! -d $1 ]; then echo "$1 does not exist or is no path." exit fi PATH=`echo "$1" | sed -e 's#/$##'` /usr/bin/find $PATH -type d -exec /bin/chmod 755 {} \; /usr/bin/find $PATH -type f -exec /bin/chmod 644 {} \; /bin/chown -R root:root $PATH pathes=( "$PATH/cache" \ "$PATH/images" \ "$PATH/extensions/BlueSpiceFoundation/data" \ "$PATH/extensions/BlueSpiceFoundation/config" \ "$PATH/extensions/Widgets/compiled_templates" \ ) for i in "${pathes[@]}"; do if [ -d $i ]; then /bin/chown -R $WWW_USER:$WWW_GROUP $i fi done </pre> Ersetzen Sie bei Bedarf den Inhalt der beiden Variablen If needed, replace the content of the variables WWW_USER="www-data" WWW_GROUP="www-data" durch den für Ihre Distribution zutreffenden Benutzer und die zutreffende Gruppe. Geben Sie dieser Datei anschließend den CHMOD 755. Nun können Sie auf der Kommandozeile mit dem Befehl with the approprate user and group of your distribution. After this, assign CHMOD 755 to this file. Now you can run the script and let it do the complete permission setting automatically with the following command: chownWiki <code><installpath-bluespice></code> die komplette Verrechtung wie zuvor beschrieben automatisch vornehmen lassen.<br /><br /> [[Datei:Hinweis.jpg|left]] '''Beachten Sie, dass bei Ausführung der update.php auf der Konsole die Rechte tlw. wieder verworfen werden können. Setzen Sie deshalb die Rechte entsprechend wieder neu nach "update.php". [[File:Hint.jpg|left]] '''<span id="result_box" class="" lang="en"><span class="">Note that when the update.php is executed on the console, the rights can be partially discarded.</span> <span class="">For this reason, set the rights to "update.php" again.</span></span>'''
Line 6: | Line 6: | ||
==Tips for this Document== | ==Tips for this Document== | ||
− | * | + | * Please, read this manual completely and work through the single installtion steps one after another. |
− | * | + | * For editing the configuration files with a text editor, the files must be saved in UTF-8 coding without BOM (Byte Order Mark). |
− | * | + | * The placeholder <code><installpath-bluespice></code> stands for the path to your BlueSpice installation, e.g <code>C:\inetpub\wwwroot\bluespice</code> (Windows) or <code>/var/www/bluespice</code> (Linux). |
− | == | + | ==Affected Folders== |
− | + | The folders, which require write permissions, are: | |
* <code><installpath-bluespice></code>/cache | * <code><installpath-bluespice></code>/cache | ||
Line 17: | Line 17: | ||
* <code><installpath-bluespice></code>/extensions/BlueSpiceFoundation/config | * <code><installpath-bluespice></code>/extensions/BlueSpiceFoundation/config | ||
* <code><installpath-bluespice></code>/extensions/BlueSpiceFoundation/data | * <code><installpath-bluespice></code>/extensions/BlueSpiceFoundation/data | ||
− | * <code><installpath-bluespice></code>/extensions/Widgets/compiled_templates '''( | + | * <code><installpath-bluespice></code>/extensions/Widgets/compiled_templates '''(only BlueSpice pro)''' |
==Assignment of Permissions with Windows== | ==Assignment of Permissions with Windows== | ||
− | + | Assign "change" rights for this folder for the local user "Everyone".<br /><br /> | |
[[Datei:Setup:Setup_windows_permissions.jpg|center]] | [[Datei:Setup:Setup_windows_permissions.jpg|center]] | ||
==Assignment of Permissions with Linux== | ==Assignment of Permissions with Linux== | ||
− | + | Here you can assign rights much more strictly, which is also recommended. Transfer the directory <code><installpath-bluespice></code> recursively to the user root (CHMOD for Files 644, CHMOD for Directories 755) and after this, transfer the mentioned directory recursively to the user and the group, under which the Apache Web Server runs (Debian/Ubuntu e.g. "www-data"). | |
− | + | In the following, we provide a bash script, which works through this tasks for you with only one command. | |
− | + | To do so, create the file /usr/local/bin/chownWiki and copy the following code into this file: | |
<pre>#!/bin/bash | <pre>#!/bin/bash | ||
Line 66: | Line 66: | ||
</pre> | </pre> | ||
− | + | If needed, replace the content of the variables | |
WWW_USER="www-data" | WWW_USER="www-data" | ||
WWW_GROUP="www-data" | WWW_GROUP="www-data" | ||
− | + | with the approprate user and group of your distribution. | |
− | + | After this, assign CHMOD 755 to this file. Now you can run the script and let it do the complete permission setting automatically with the following command: | |
chownWiki <code><installpath-bluespice></code> | chownWiki <code><installpath-bluespice></code> | ||
− | |||
− | [[ | + | [[File:Hint.jpg|left]] '''<span id="result_box" class="" lang="en"><span class="">Note that when the update.php is executed on the console, the rights can be partially discarded.</span> <span class="">For this reason, set the rights to "update.php" again.</span></span>''' |