由 oyzjin 在 05-06-2003 21:27 发表:
为何我的proftpd不能匿名访问?配置文件如下:
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 "welcome to oyzjin's ftp server"
ServerType standalone
DefaultServer on
Systemlog /var/log/proftpd.log
#Maxlog 1024000
RequireValidShell off
UseReverseDNS off
Port 21 is the standard FTP port.
Port 8121
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 nobody
Group nobody
RequireValidShell off
DefaultRoot /home/ftp
serverIdent off
Normally, we want files to be overwriteable.
1<directory *="">
2
3AllowOverwrite off
4
5</directory>
A basic anonymous configuration, no upload directories.
1<anonymous ftp="" home="">
2
3User ftp
4
5Group ftp
6
7
8
9# We want clients to be able to login with "anonymous" as well as "ftp"
10
11#RequireValidShell off
12
13UserAlias anonymous ftp
14
15
16
17# Limit the maximum number of anonymous logins
18
19MaxClients 10
20
21
22
23# We want 'welcome.msg' displayed at login, and '.message' displayed
24
25# in each newly chdired directory.
26
27DisplayLogin welcome.msg
28
29DisplayFirstChdir .message
30
31
32
33# Limit WRITE everywhere in the anonymous chroot
34
35<limit login="">
36
37DenyAll
38
39</limit>
40
41AllowAll
42
43</anonymous>
k7_550 asus_kx133 win98 winnt
c433 810 redhat9.01 23G_scsi128m
由 n0fe@r 在 05-06-2003 22:21 发表:
ftp这个用户和组创建了吗,最好还是看看proftpd.log,什么错误都会告诉你
由 oyzjin 在 05-07-2003 10:09 发表:
一定要创建ftp这个用户吗?
我记得我第一次使用的时候是不建什么用户的,因为我系统只有两个用户!而且那时候是可以匿名访问的,但不能用系统用户来登陆,所以我把文件改了一下,就这以后就不能用匿名访问了!!!
k7_550 asus_kx133 win98 winnt
c433 810 redhat9.01 23G_scsi128m
由 oyzjin 在 05-07-2003 10:11 发表:
还有,是怎样控制syslog的大小!用哪个命令?
k7_550 asus_kx133 win98 winnt
c433 810 redhat9.01 23G_scsi128m
由 oyzjin 在 05-08-2003 21:14 发表:
为何无人答我啊?
k7_550 asus_kx133 win98 winnt
c433 810 redhat9.01 23G_scsi128m
由 oyzjin 在 05-08-2003 22:30 发表:
1<directory>
2
3&</directory>