From cff617379d5119d9e788ecd541e281f75fb666bb Mon Sep 17 00:00:00 2001 From: Daniel Winzen Date: Tue, 1 Jan 2019 14:34:06 +0100 Subject: [PATCH] tmp is created by setup_chroot script already --- var/www/cron.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/var/www/cron.php b/var/www/cron.php index 7c48437..302f9c3 100644 --- a/var/www/cron.php +++ b/var/www/cron.php @@ -29,7 +29,7 @@ while($id=$stmt->fetch(PDO::FETCH_NUM)){ exec('useradd -l -p ' . escapeshellarg($id[2]) . ' -g www-data -k /var/www/skel -m -s /usr/sbin/nologin ' . escapeshellarg($system_account)); exec('/var/www/setup_chroot.sh ' . escapeshellarg("/home/$system_account")); exec('grep ' . escapeshellarg($system_account) . ' /etc/passwd >> ' . escapeshellarg("/home/$system_account/etc/passwd")); - foreach(['.ssh', 'data', 'Maildir', 'tmp'] as $dir){ + foreach(['.ssh', 'data', 'Maildir'] as $dir){ mkdir("/home/$system_account/$dir", 0700); chown("/home/$system_account/$dir", $system_account); chgrp("/home/$system_account/$dir", 'www-data');