由 icoming 在 09-03-2004 22:00 发表:
我怎么配置都不能让我的ftp服务器能匿名登录?
请问怎么配置ftp服务器让别人匿名登录?
还有能不能有谁能把proftp的proftpd.conf传上来让我参考一下.
还有很多问题搞不定.
谢谢啦!!!
由 faint 在 09-03-2004 22:22 发表:
每个发行版本都有一个样本吧。
############################匿名用户配置
1<directory *="">
2
3AllowOverwrite on
4
5</directory>
1<anonymous ftp="" mnt="">
2
3User ftp
4
5#匿名登录使用ftp用户
6
7Group ftp
8
9#匿名登录使用ftp组
10
11
12
13
14
15#/mnt/ftp是ftp的目录,现在已经有了一个anonymous的访问
16
17#我已经建立一个用户pk,想让它的ftp根目录变为/mnt/ftp
18
19#而不是/home/pk,可以下面这样做 
20
21#UserAlias pk ftp
22
23
24
25AnonRequirePassword off
26
27RequireValidShell off
28
29
30
31UserAlias anonymous ftp
32
33#给ftp用户anonymous的别名,使得anonymous登录就是ftp用户登录。
34
35MaxClients 10
36
37#最多10个匿名用户同时在线
38
39#限制每个匿名用户IP允许的线程数
40
41MaxClientsPerHost 1 "Sorry, anonymous user only allow one IP -- try again later!"
42
43DisplayLogin welcome.msg
44
45#登录FTP显示的欢迎信息。放在FTP的根目录下。
46
47DisplayFirstChdir .message
48
49<limit write="">
50
51DenyAll
52
53</limit>
54</anonymous>
#限制匿名用户写权限
###########################匿名用户配置完
由 icoming 在 09-04-2004 15:13 发表:
我用的就是proftp中的那个样本啊。可是就是连不上
由 icoming 在 09-05-2004 00:43 发表:
如下是我的proftpd.conf的内容
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.
ServerName "ProFTPD Default Installation"
ServerType standalone
DefaultServer on
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
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 30
Set the user and group under which the server will run.
User zdftp
Group zdftp
These must be absolute paths.
AuthUserFile /tmp/passwd
AuthGroupFile /tmp/group
#PidFile /tmp/PFTEST/PFTEST.pid
ScoreboardFile /tmp/PFTEST/PFTEST.score
SystemLog /tmp/PFTEST/PFTEST.syslog
TransferLog /tmp/PFTEST/PFTEST.xferlog
To cause every FTP user to be "jailed" (chrooted) into their home
directory, uncomment this line.
#DefaultRoot ~
Normally, we want files to be overwriteable.
1<directory storage="">
2
3AllowOverwrite on
4
5</directory>
1<directory></directory>
1<directory></directory>
1<limit read="" write="">
2
3DenyAll
4
5</limit>