Skip to content
Snippets Groups Projects
Commit cbda3005 authored by tbrehm's avatar tbrehm
Browse files

Fixed: FS#431 - jailkit users cannot login

parent f06816d6
No related branches found
No related tags found
No related merge requests found
...@@ -379,9 +379,13 @@ class apache2_plugin { ...@@ -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 // The document root itself has to be owned by root
exec("chown -R $username:$groupname ".escapeshellcmd($data["new"]["document_root"])); exec("chown root:root ".escapeshellcmd($data["new"]["document_root"]));
}
// make temp direcory writable for the apache user and the website user // make temp direcory writable for the apache user and the website user
exec("chmod 777 ".escapeshellcmd($data["new"]["document_root"]."/tmp")); exec("chmod 777 ".escapeshellcmd($data["new"]["document_root"]."/tmp"));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment