📄 00000046.htm
字号:
<HTML><HEAD> <TITLE>BBS水木清华站∶精华区</TITLE></HEAD><BODY><CENTER><H1>BBS水木清华站∶精华区</H1></CENTER>发信人: cirrus (望眼欲穿), 信区: Linux <BR>标 题: Re: a simple proftpd conf <BR>发信站: BBS 水木清华站 (Sat Nov 27 13:50:31 1999) <BR> <BR> <BR> <BR>【 在 kxn (好好学习!) 的大作中提到: 】 <BR>∶<I> # This is a basic ProFTPD configuration file (rename it to </I><BR>∶<I> # 'proftpd.conf' for actual use. It establishes a single server </I><BR>∶<I> # and a single anonymous login. It assumes that you have a user/group </I><BR>∶<I> # "nobody" and "ftp" for normal operation and anon. </I><BR>∶<I> ServerType standalone </I><BR>∶<I> DefaultServer on </I><BR>∶<I> ServerAdmin "<A HREF="mailto:root@proftpd.org"">root@proftpd.org"</A> </I><BR>∶<I> ServerIdent off </I><BR>强烈建议加上 <BR>UseReverseDNS off <BR>∶<I> # Port 21 is the standard FTP port. </I><BR>∶<I> Port 21 </I><BR>∶<I> # Umask 022 is a good standard umask to prevent new dirs and files </I><BR>∶<I> # from being group and world writable. </I><BR>∶<I> Umask 002 </I><BR>∶<I> # To prevent DoS attacks, set the maximum number of child processes </I><BR>∶<I> # to 30. If you need to allow more than 30 concurrent connections </I><BR>∶<I> # at once, simply increase this value. Note that this ONLY works </I><BR>∶<I> # in standalone mode, in inetd mode you should use an inetd server </I><BR>∶<I> # that allows you to limit maximum number of processes per service </I><BR>∶<I> # (such as xinetd) </I><BR>∶<I> MaxInstances 230 </I><BR>∶<I> MaxLoginAttempts 2 </I><BR>∶<I> UseReverseDNS off </I><BR>∶<I> TimeoutIdle 300 </I><BR>∶<I> TimeoutLogin 200 </I><BR>∶<I> IdentLookups off </I><BR>∶<I> # Set the user and group that the server normally runs at. </I><BR>∶<I> User ftp </I><BR>∶<I> Group ftp </I><BR>∶<I> # Normally, we want files to be overwriteable. </I><BR>∶<I> <Directory /*> </I><BR>∶<I> AllowOverwrite on </I><BR>∶<I> </Directory> </I><BR>∶<I> # A basic anonymous configuration, no upload directories. </I><BR>∶<I> <Anonymous ~ftp> </I><BR>∶<I> User ftp </I><BR>∶<I> Group ftp </I><BR>∶<I> # We want clients to be able to login with "anonymous" as well as "ftp" </I><BR>∶<I> AuthAliasOnly on </I><BR>∶<I> UserAlias anonymous ftp </I><BR>∶<I> AuthUsingAlias on </I><BR>∶<I> # Limit the maximum number of anonymous logins </I><BR>∶<I> MaxClients 200 "Sorry, %m users -- try again later" </I><BR>∶<I> MaxClientsPerHost 5 </I><BR>∶<I> RequireValidShell off </I><BR>∶<I> # We want 'welcome.msg' displayed at login, and '.message' displayed </I><BR>∶<I> # in each newly chdired directory. </I><BR>∶<I> DisplayLogin welcome.msg </I><BR>∶<I> DisplayFirstChdir .message </I><BR>∶<I> PathDenyFilter "(\.ftpaccess)|(\.htaccess)|(\.forward)|(\core)$" </I><BR>∶<I> # Limit WRITE everywhere in the anonymous chroot </I><BR>∶<I> <Limit LOGIN> </I><BR>∶<I> Order allow,deny </I><BR>∶<I> Deny from badguy.net </I><BR>∶<I> Allow from all </I><BR>∶<I> </Limit> </I><BR>∶<I> <Limit WRITE> </I><BR>∶<I> DenyAll </I><BR>∶<I> </Limit> </I><BR>∶<I> <Directory incoming/*> </I><BR>∶<I> <Limit STOR MKD> </I><BR>∶<I> AllowAll </I><BR>∶<I> </Limit> </I><BR>∶<I> </Directory> </I><BR>∶<I> </Anonymous> </I><BR> <BR> <BR>-- <BR>※ 来源:·BBS 水木清华站 bbs.net.tsinghua.edu.cn·[FROM: 210.32.137.16] <BR><CENTER><H1>BBS水木清华站∶精华区</H1></CENTER></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -