Commit cbda3005 authored by tbrehm's avatar tbrehm
Browse files

Fixed: FS#431 - jailkit users cannot login

parent f06816d6
......@@ -379,9 +379,13 @@ class apache2_plugin {
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"));
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment