From 509d0ca0fa3df726375560b28a71df047fc04b09 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Fri, 17 Dec 2004 21:13:31 +0000 Subject: Initial revision --- packages/pure-ftpd.xml | 78 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 packages/pure-ftpd.xml (limited to 'packages') diff --git a/packages/pure-ftpd.xml b/packages/pure-ftpd.xml new file mode 100644 index 00000000..9c285218 --- /dev/null +++ b/packages/pure-ftpd.xml @@ -0,0 +1,78 @@ + + + pure-ftpd + + + Pure FTPD + 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
+
+ + installedpackages->package->$packagename->configuration + + + + Username + graphname + + + Description + description + + + + + + 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 + + + + mwexec("rm /usr/local/etc/rc.d/pure-ftp*"); + $fout = fopen("/usr/local/etc/rc.d/pure-ftpd.sh","w"); + fwrite($fout, "#!/bin/sh\n\n"); + fwrite($fout, "/usr/local/sbin/pure-ftpd -A -B /usr/local/etc/pure-ftpd.conf\n"); + fclose($fout); + mwexec("chmod a+x /usr/local/etc/rc.d/pure-ftpd.sh"); + mwexec("/usr/local/etc/rc.d/pure-ftpd.sh"); + + + mwexec("/usr/bin/killall pure-ftpd"); + + + 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("/bin/mkdir -p /home/" . $_POST['username']); + $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 userdel " . $_POST['username']); + +
-- cgit v1.2.3