由 topjoy 在 10-23-2003 21:00 发表:
我的FTP怎么匿名登陆不上?
连接到 10.1.216.93:21
220 ProFTPD 1.2.8 Server (TopJoy ProFTPD) [Tagn]
USER anonymous
331 Password required for anonymous.
PASS xxxx
530 Login incorrect.
正在断开与站点 10.1.216.93 的连接
proftp.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 "TopJoy ProFTPD"
ServerType standalone
DefaultServer on
Allow FTP resuming.
Remember to set to off if you have an incoming ftp for upload.
AllowStoreRestart 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 ftpusers
Group ftp
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></directory>
AllowOverwrite off
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:
1<anonymous ~="">
2
3User ftp
4
5Group ftp
6
7# We want clients to be able to login with "anonymous" as well as "ftp"
8
9UserAlias anonymous ftp
10
11
12
13# Limit the maximum number of anonymous logins
14
15MaxClients 10
16
17
18
19# We want 'welcome.msg' displayed at login, and '.message' displayed
20
21# in each newly chdired directory.
22
23#DisplayLogin welcome.msg
24
25#DisplayFirstChdir .message
26
27
28
29# Limit WRITE everywhere in the anonymous chroot
30
31<limit write="">
32
33DenyAll
34
35</limit>
36<limit login="">
37
38AllowAll
39
40</limit>
41</anonymous>
其中的
User ftpusers
Group ftp
是在用户管理里面建的,也修改了/etc/pass文件bash为bni/false
由 guiwang2001 在 10-24-2003 02:50 发表:
朋友,你先把配置文件恢复到原始状态, 找出不能登陆的原因是不是配置文件的问题.我上次也是出现过不能匿名登陆的问题,后来发先上匿名路径有问题,.
qq:57905122
由 wuchy1 在 10-24-2003 11:26 发表:
你用的是什么VSFTP,还是PROFTP?你的匿名项打开了吗?
谢谢你~~~9527
由 cclnw 在 10-24-2003 11:44 发表:
把这行:
1<anonymous ~="">
2
3改为制定一个目录
4
5<anonymouse ftp="" home="">
6
7
8
9应该就可以了
10
11
12
13
14
15我的proftpd.conf文件:
16
17
18
19> ` PHP源码:
20>
21> * * *
22>
23> `
24>
25> # This is a basic ProFTPD configuration file.
26>
27> # It establishes a single server
28>
29> # and a single anonymous login. It assumes that you have a user/group
30>
31> # "nobody" and "ftp" for normal operation and anon.
32>
33> # To enable anonymous login remove the ftp user in /etc/ftpusers
34>
35>
36>
37> ServerName "Linux proftpd server"
38>
39> ServerType standalone
40>
41> DefaultServer on
42>
43> DefaultRoot ~ ftpusers
44>
45>
46>
47> ScoreboardFile /var/ run / proftpd . scoreboard
48>
49> SystemLog /var/ log / proftpd . log
50>
51>
52>
53> #More log.
54>
55> #ExtendedLog /var/log/activity-ftp.log read,write
56>
57>
58>
59> # Port 21 is the standard FTP port.
60>
61> Port 21
62>
63> # Umask 022 is a good standard umask to prevent new dirs and files
64>
65> # from being group and world writable.
66>
67> Umask 022
68>
69>
70>
71> # To prevent DoS attacks, set the maximum number of child processes
72>
73> # to 30. If you need to allow more than 30 concurrent connections
74>
75> # at once, simply increase this value. Note that this ONLY works
76>
77> # in standalone mode, in inetd mode you should use an inetd server
78>
79> # that allows you to limit maximum number of processes per service
80>
81> # (such as xinetd)
82>
83> MaxInstances 30
84>
85>
86>
87> # Set the maximum number of seconds a data connection is allowed
88>
89> # to "stall" before being aborted.
90>
91> TimeoutStalled 300
92>
93>
94>
95> # Set the user and group that the server normally runs at.
96>
97> User nobody
98>
99> Group nobody
100>
101>
102>
103> # Normally, we want files to be overwriteable.
104>
105> < Directory /*>
106>
107> AllowOverwrite on
108>
109>
110>
111>
112>
113> # This is intended to protect you from those nasty DoS cpu burner attacks
114>
115> <global>
116>
117> DenyFilter *.*/
118>
119> </global>
120>
121>
122>
123> # A basic anonymous configuration
124>
125> # To enable this remove the user ftp from /etc/ftpusers
126>
127> < Anonymous / home / ftp >
128>
129> RequireValidShell off
130>
131> User ftp
132>
133> Group ftp
134>
135> # We want clients to be able to login with "anonymous" as well as "ftp"
136>
137> UserAlias anonymous ftp
138>
139>
140>
141> # Limit the maximum number of anonymous logins
142>
143> MaxClients 50
144>
145>
146>
147> <font color="#FF8 ` `</anonymouse></anonymous>