From 4a1ebd2940defc12aabb65d1d4dec432a695f912 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Tue, 5 Jul 2005 15:52:26 +0000 Subject: Make sure hopme directories exist for pure-ftpd --- packages/pure-ftpd.xml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/pure-ftpd.xml b/packages/pure-ftpd.xml index 7900be48..04a9e810 100644 --- a/packages/pure-ftpd.xml +++ b/packages/pure-ftpd.xml @@ -82,6 +82,8 @@ config_lock(); $expires = ""; if($_POST['expiration']) $expires = " -e " . $_POST['expiration']; + mwexec("/bin/mkdir /home/{$_POST['username']}"); + mwexec("/usr/sbin/chown -R {$_POST['username']}:wheel /home/{$_POST['username']}"); mwexec("/usr/sbin/pw useradd " . $_POST['username'] . $expires . " -m -d /home/" . $_POST['username'] . "/./ -s \"/usr/sbin/nologini\""); $fd = popen("/usr/sbin/pw usermod -n " . $_POST['username'] . " -H 0", "w"); $salt = md5(time()); -- cgit v1.2.3