. All rights reserved. */ /* ========================================================================== */ /* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* ========================================================================== */ ]]> Describe your package here Describe your package requirements here Currently there are no FAQ items provided. pure-ftpd 1.0.20_1 Services: PureFTPD Accounts Pure FTPD Accounts Pure FTPd Server is a fast, production quality, standards-conformant FTP server based on Troll-FTPd. It has no known vulnerability, it is trivial to set up, and it is especially designed for modern kernels. Features include PAM support, IPv6, chroot()ed home directories, virtual domains, built-in 'ls', FXP protocol, anti-warez system, bandwidth throttling, restricted ports for passive downloads, an LDAP backend, XML output, and more.
Services
pure-ftpd.xml
Pure FTPD Settings Pure FTPd Server is a fast, production quality, standards-conformant FTP server based on Troll-FTPd. It has no known vulnerability, it is trivial to set up, and it is especially designed for modern kernels. Features include PAM support, IPv6, chroot()ed home directories, virtual domains, built-in 'ls', FXP protocol, anti-warez system, bandwidth throttling, restricted ports for passive downloads, an LDAP backend, XML output, and more.
Services
pkg_edit.php?xml=pure-ftpdsettings.xml&id=0
installedpackages->package->$packagename->configuration Username username Description description http://www.pfsense.com/packages/config/pure-ftpdsettings.xml Username username Enter the username here input Password password Enter the password here password Username Description description Enter the description of the user here input Account Expiration expiration Amount of days when account expires. Leave blank for never. input rmdir_recursive("/home/" . $username); system("/usr/sbin/pw userdel " . $username); conf_mount_rw(); 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()); $crypted_pw = crypt($_POST['password'],$salt); fwrite($fd, $crypted_pw); pclose($fd); mwexec("/usr/sbin/pw usermod " . $_POST['username'] . " -s /nonexistent"); conf_mount_ro(); config_unlock(); $savemsg = "User has been added."; $fout = fopen("/usr/local/etc/rc.d/pure-ftpd.sh","w"); fwrite($fout, "#!/bin/sh\n\n"); fwrite($fout, "# PACKAGE: Pure-FTPD\n"); fwrite($fout, "# EXECUTABLE: pure-ftpd\n"); fwrite($fout, "/usr/local/sbin/pure-ftpd -A -B /usr/local/etc/pure-ftpd.conf\n"); fclose($fout); chmod("/usr/local/etc/rc.d/pure-ftpd.sh", 0755); mwexec("/usr/local/etc/rc.d/pure-ftpd.sh"); mwexec("/usr/bin/killall pure-ftpd"); rmdir_recursive("/usr/local/etc/pure*"); rmdir_recursive("/usr/local/etc/rc.d/pure*");