diff options
author | Antoine Ginies <aginies@mandriva.com> | 2004-01-13 14:48:05 +0000 |
---|---|---|
committer | Antoine Ginies <aginies@mandriva.com> | 2004-01-13 14:48:05 +0000 |
commit | a8fc961f22b40950975ca84e9acdb2ff691779af (patch) | |
tree | 5ec70bb8aa969bb17509b30fd4937b938d3f3f30 /ftp_wizard/scripts | |
parent | 776936f45d38c2362720ab8497561d8ce9e62997 (diff) | |
download | drakwizard-a8fc961f22b40950975ca84e9acdb2ff691779af.tar drakwizard-a8fc961f22b40950975ca84e9acdb2ff691779af.tar.gz drakwizard-a8fc961f22b40950975ca84e9acdb2ff691779af.tar.bz2 drakwizard-a8fc961f22b40950975ca84e9acdb2ff691779af.tar.xz drakwizard-a8fc961f22b40950975ca84e9acdb2ff691779af.zip |
new default configuration file, and add new options in wizard
Diffstat (limited to 'ftp_wizard/scripts')
-rw-r--r-- | ftp_wizard/scripts/proftpd.conf.default | 106 |
1 files changed, 80 insertions, 26 deletions
diff --git a/ftp_wizard/scripts/proftpd.conf.default b/ftp_wizard/scripts/proftpd.conf.default index 1325e599..0dc72bb1 100644 --- a/ftp_wizard/scripts/proftpd.conf.default +++ b/ftp_wizard/scripts/proftpd.conf.default @@ -1,21 +1,46 @@ -# This is a basic ProFTPD configuration file (rename it to -# 'proftpd.conf' for actual use. It establishes a single server -# and a single anonymous login. It assumes that you have a user/group -# "nobody" and "ftp" for normal operation and anon. +# +# This is a default ProFTPD configuration file. +# -ServerName "ProFTPD Default Installation" -ServerType standalone -DefaultServer on +# Run proftpd has a standalone server (not via inetd or xinetd) +ServerType standalone +DefaultServer on -# Allow FTP resuming. -# Remember to set to off if you have an incoming ftp for upload. -AllowStoreRestart on +# chroot Home user directory +DefaultRoot ~ -# Port 21 is the standard FTP port. -Port 21 # Umask 022 is a good standard umask to prevent new dirs and files # from being group and world writable. -Umask 022 +Umask 022 + +# Name of the server +ServerName "HOSTNAME FTP Server" +# Don't Show proftpd version +ServerIdent off +DeferWelcome on +DisplayConnect /etc/banner-proftpd + +# Administrator email address +ServerAdmin ADMIN + +# Deny root Login +RootLogin off + +# Deny MSG +AccessDenyMsg " !-!! ACCESS DENY !!-! SEEMS YOU HAVE NO RIGHT THERE !!" + +# Accept Message +AccessGrantMsg " -- Guest access granted for %u --" + +# Perform identity lookup +IdentLookups off +# preform reverse lookup +UseReverseDNS off + +# Port 21 is the standard FTP port. +Port 21 +# use GMT (off=localtime) +TimesGMT off # To prevent DoS attacks, set the maximum number of child processes # to 30. If you need to allow more than 30 concurrent connections @@ -23,23 +48,52 @@ Umask 022 # in standalone mode, in inetd mode you should use an inetd server # that allows you to limit maximum number of processes per service # (such as xinetd) -MaxInstances 30 +MaxInstances 30 +# Max login attempt before disconnected +MaxLoginAttempts 3 +# max client simultaneous +MaxClients 10 "Sorry, the maximum number of allowed users are already connected (%m)" +# Login time out (seconds) +TimeoutLogin 300 +# idle timeout (seconds) +TimeoutNoTransfer 400 # Set the user and group that the server normally runs at. -User nobody -Group nogroup +User nobody +Group nogroup +DirFakeUser off nobody +DirFakeGroup off nobody + +# Default transfer mode (bin|ascii) +DefaultTransferMode binary + +# FXP transfert +AllowForeignAddress on + +# Allow FTP resuming. +# Remember to set to off if you have an incoming ftp for upload. +AllowStoreRestart on +AllowRetrieveRestart on + +# Automatically delete aborted uploads +DeleteAbortedStores off + +# Download Bandwitdh KB/sec +#TransferRate RETR 100 +# Upload Bandwitdh KB/sec +#TransferRate STOR,APPE 100 + +# Some logging formats +SystemLog /var/log/proftpd.log +TransferLog /var/log/xferlog +Extendedlog /var/log/ftp.log +LogFormat default "%h %l %u %t \"%r\" %s %b" +LogFormat auth "%v [%P] %h %t \"%r\" %s" +LogFormat write "%h %l %u %t \"%r\" %s %b" -# Normally, we want files to be overwriteable. <Directory /*> - AllowOverwrite on + AllowOverwrite on </Directory> # Needed for NIS. -PersistentPasswd off - -# Default root can be used to put users in a chroot environment. -# As an example if you have a user foo and you want to put foo in /home/foo -# chroot environment you would do this: -# -# DefaultRoot /home/foo foo - +PersistentPasswd off |