Skip to content

Commit bd36f64

Browse files
committed
Fixed: FS#1696 - Possible problem with chrooted cronjobs.
1 parent 419eb7d commit bd36f64

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

server/plugins-available/cron_jailkit_plugin.inc.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,9 @@ function _add_jailkit_user()
291291
$this->app->log("Added jailkit user to chroot with command: ".$command,LOGLEVEL_DEBUG);
292292

293293
mkdir(escapeshellcmd($this->parent_domain['document_root'].$jailkit_chroot_userhome), 0755, true);
294+
chown(escapeshellcmd($this->parent_domain['document_root'].$jailkit_chroot_userhome, escapeshellcmd($this->parent_domain['system_user']));
295+
chgrp(escapeshellcmd($this->parent_domain['document_root'].$jailkit_chroot_userhome, escapeshellcmd($this->parent_domain['system_group']));
296+
294297
}
295298

296299
function _get_home_dir($username)

0 commit comments

Comments
 (0)