tbrehm
2009-01-27 cbda30058c0f61ae2afbd9085afcf841f32751a5
Fixed: FS#431 - jailkit users cannot login
1 files modified
8 ■■■■ changed files
server/plugins-available/apache2_plugin.inc.php 8 ●●●● patch | view | raw | blame | history
server/plugins-available/apache2_plugin.inc.php
@@ -379,9 +379,13 @@
        }
        
        
        if($this->action == 'insert') {
            // Chown and chmod the directories below the document root
            exec("chown -R $username:$groupname ".escapeshellcmd($data["new"]["document_root"]));
        
        // Chown and chmod the directories
        exec("chown -R $username:$groupname ".escapeshellcmd($data["new"]["document_root"]));
            // The document root itself has to be owned by root
            exec("chown root:root ".escapeshellcmd($data["new"]["document_root"]));
        }
        
        // make temp direcory writable for the apache user and the website user
        exec("chmod 777 ".escapeshellcmd($data["new"]["document_root"]."/tmp"));