diff --git a/lam/HISTORY b/lam/HISTORY
index d1edb518..1f611125 100644
--- a/lam/HISTORY
+++ b/lam/HISTORY
@@ -1,5 +1,6 @@
??? 0.5.2
- New module for SSH public keys
+ - check file permissions on login page
- fixed bugs:
-> creation of home directories did not work
diff --git a/lam/templates/login.php b/lam/templates/login.php
index 51d6ed92..8230b6e6 100644
--- a/lam/templates/login.php
+++ b/lam/templates/login.php
@@ -149,6 +149,15 @@ function display_LoginPage($config_object) {
StatusMessage("ERROR", "Your PHP has no gettext support!", "Please install gettext for PHP.");
echo "
";
}
+ // check file permissions
+ $writableDirs = array('config', 'config/profiles', 'config/pdf', 'sess', 'tmp', );
+ for ($i = 0; $i < sizeof($writableDirs); $i++) {
+ $path = realpath('../') . "/" . $writableDirs[$i];
+ if (!is_writable($path)) {
+ StatusMessage("ERROR", _('The directory %s is not writable for the web server. Please change your file permissions.'), '', array($path));
+ echo "
";
+ }
+ }
?>