aboutsummaryrefslogtreecommitdiffstats
path: root/packages/pure-ftpd.xml
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-07-05 15:52:26 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-07-05 15:52:26 +0000
commit4a1ebd2940defc12aabb65d1d4dec432a695f912 (patch)
treeb07052b3e6e3b67e3fced60a38a88478c898b88d /packages/pure-ftpd.xml
parentc8e3a9fe561ad70a701d1c13b3214609122e7d31 (diff)
downloadpfsense-packages-4a1ebd2940defc12aabb65d1d4dec432a695f912.tar.gz
pfsense-packages-4a1ebd2940defc12aabb65d1d4dec432a695f912.tar.bz2
pfsense-packages-4a1ebd2940defc12aabb65d1d4dec432a695f912.zip
Make sure hopme directories exist for pure-ftpd
Diffstat (limited to 'packages/pure-ftpd.xml')
-rw-r--r--packages/pure-ftpd.xml2
1 files changed, 2 insertions, 0 deletions
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());