diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-04-20 00:41:55 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-04-20 00:41:55 +0000 |
commit | cebec267274fa5deb98c2b3580f3a2077fdc8575 (patch) | |
tree | bbd8d82f578b0d5577eb8311a08ad3d31fcdb159 /packages/pure-ftpd.xml | |
parent | 7858380ee0db68926d91cb9ae8a97a8711d42c29 (diff) | |
download | pfsense-packages-cebec267274fa5deb98c2b3580f3a2077fdc8575.tar.gz pfsense-packages-cebec267274fa5deb98c2b3580f3a2077fdc8575.tar.bz2 pfsense-packages-cebec267274fa5deb98c2b3580f3a2077fdc8575.zip |
Instruct pure-ftpd to chroot lock ftp users into their home directory
Diffstat (limited to 'packages/pure-ftpd.xml')
-rw-r--r-- | packages/pure-ftpd.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/pure-ftpd.xml b/packages/pure-ftpd.xml index c1c4cbf9..e1eb036b 100644 --- a/packages/pure-ftpd.xml +++ b/packages/pure-ftpd.xml @@ -84,7 +84,7 @@ config_lock(); $expires = ""; if($_POST['expiration']) $expires = " -e " . $_POST['expiration']; - mwexec("/usr/sbin/pw useradd " . $_POST['username'] . $expires . " -m -k /home/ " . $_POST['username'] . " -s \"/usr/sbin/nologin\""); + mwexec("/usr/sbin/pw useradd " . $_POST['username'] . $expires . " -m -k /home/ " . $_POST['username'] . "/./ -s \"/usr/sbin/nologin\""); $fd = popen("/usr/sbin/pw usermod -n " . $_POST['username'] . " -H 0", "w"); $salt = md5(time()); $crypted_pw = crypt($_POST['password'],$salt); |