aboutsummaryrefslogtreecommitdiffstats
path: root/packages/pure-ftpdsettings.xml
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-03-06 17:59:24 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-03-06 17:59:24 +0000
commita2a62628bdc31f9ae052214bf38473582deb534e (patch)
treebddcce89504f35bc87543852b1b600d0f6630f81 /packages/pure-ftpdsettings.xml
parent31ef6ef02c255d593272f4bd30e1fb0f455f52de (diff)
downloadpfsense-packages-a2a62628bdc31f9ae052214bf38473582deb534e.tar.gz
pfsense-packages-a2a62628bdc31f9ae052214bf38473582deb534e.tar.bz2
pfsense-packages-a2a62628bdc31f9ae052214bf38473582deb534e.zip
Add change root option.
Submitted-by: bkw
Diffstat (limited to 'packages/pure-ftpdsettings.xml')
-rw-r--r--packages/pure-ftpdsettings.xml14
1 files changed, 11 insertions, 3 deletions
diff --git a/packages/pure-ftpdsettings.xml b/packages/pure-ftpdsettings.xml
index c6435347..23f06beb 100644
--- a/packages/pure-ftpdsettings.xml
+++ b/packages/pure-ftpdsettings.xml
@@ -52,14 +52,14 @@
<field>
<fielddescr>Limit upload bandwidth</fielddescr>
<fieldname>uploadbw</fieldname>
- <description>Limit the upload bandwdith.</description>
+ <description>Limit the upload bandwdith in KB/s</description>
<type>input</type>
<validationtype>number</validationtype>
</field>
<field>
<fielddescr>Limit download bandwidth</fielddescr>
<fieldname>downloadbw</fieldname>
- <description>Limit the download bandwdith.</description>
+ <description>Limit the download bandwdith in KB/s</description>
<type>input</type>
<validationtype>number</validationtype>
</field>
@@ -75,7 +75,13 @@
<description>NAT mode. Force active mode. If your FTP server is behind a NAT box that doesn't support applicative FTP proxying, or if you use port redirection without a transparent FTP proxy, use this. Well... the previous sentence isn't very clear. Okay: if your network looks like this: FTP--NAT.gateway/router--Internet and if you want people coming from the internet to have access to your FTP server, please try without this option first. If Netscape clients can connect without any problem, your NAT gate-way rulez. If Netscape doesn't display directory listings, your NAT gateway sucks.</description>
<type>checkbox</type>
</field>
- </fields>
+ <field>
+ <fielddescr>Chroot environment</fielddescr>
+ <fieldname>chroot</fieldname>
+ <description>Allow users (but root) to only see their ~ and no system files.</description>
+ <type>checkbox</type>
+ </field>
+ </fields>
<custom_php_install_command>
</custom_php_install_command>
<custom_php_deinstall_command>
@@ -94,6 +100,7 @@
if($_POST['uploadbw'] and $_POST['downloadbw']) $startline .= " -T " . $_POST['uploadbw'] . ":" . $_POST['downloadbw'];;
if($_POST['natworkaround']) $startline .= " -N";
if($_POST['filedeletion']) $startline .= " -K";
+ if($_POST['chroot']) $startline .= " -A";
$startline .= " -B /usr/local/etc/pure-ftpd.conf";
fwrite($fout, $startline . "\n");
fclose($fout);
@@ -105,3 +112,4 @@
<custom_delete_php_command>
</custom_delete_php_command>
</packagegui>
+