以下为引用的内容:
Code: Www_Spdns_com
sudo gedit /etc/proftpd.conf Spdns^com
当然你可以按你的需要编辑你自己的proftpd.conf: Spdns.com
Code: # To really apply changes reload proftpd after modifications. AllowOverwrite on AuthAliasOnly on 南通服务器网
# Choose here the user alias you want !!!! UserAlias sauron userftp Spdns@com
ServerName "ChezFrodon" ServerType standalone DeferWelcome on Www@Spdns@com
MultilineRFC2228 on DefaultServer on ShowSymlinks off 中国南通服务器网
TimeoutNoTransfer 600 TimeoutStalled 100 TimeoutIdle 2200 Spdns~com
DisplayFirstChdir .message ListOptions "-l" Spdns
RequireValidShell off 南通服务器网
TimeoutLogin 20 Www^Spdns^com
RootLogin off Spdns.com
# It's better for debug to create log files ;-) ExtendedLog /var/log/ftp.log TransferLog /var/log/xferlog SystemLog /var/log/syslog.log 南通服务器网
#DenyFilter \*.*/ Spdns.com
# I don't choose to use /etc/ftpusers file (set inside the users you want to ban, not useful for me) UseFtpUsers off Www~Spdns~com
# Allow to restart a download AllowStoreRestart on 中.国.南通服务器网
# Port 21 is the standard FTP port, so don't use it for security reasons (choose here the port you want) Port 1980 Www^Spdns^com
# To prevent DoS attacks, set the maximum number of child processes # to 30. If you need to allow more than 30 concurrent connections # at once, simply increase this value. Note that this ONLY works # 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 8 中.国.南通服务器网
# Set the user and group that the server normally runs at. User nobody Group nogroup Spdns^com
# Umask 022 is a good standard umask to prevent new files and dirs # (second parm) from being group and world writable. Umask 022 022 中国南通服务器网
PersistentPasswd off 中国南通服务器网
MaxClients 8 MaxClientsPerHost 8 MaxClientsPerUser 8 MaxHostsPerUser 8 Www~Spdns~com
# Display a message after a successful login AccessGrantMsg "welcome !!!" # This message is displayed for each access good or not ServerIdent on "you're at home" 南通服务器网
# Set /home/FTP-shared directory as home directory DefaultRoot /home/FTP-shared Spdns
# Lock all the users in home directory, ***** really important ***** DefaultRoot ~ Www_Spdns_com
MaxLoginAttempts 5 Spdns^com
#VALID LOGINS
AllowUser userftp DenyALL 中.国.南通服务器网
Umask 022 022 AllowOverwrite off DenyAll Www.Spdns.com
Umask 022 022 AllowOverwrite off DenyAll
中国南通服务器网
/home/FTP-shared/upload/> Umask 022 022 AllowOverwrite on DenyAll [南通服务器网]
AllowAll 中.国.南通服务器网
|