我的FTP怎么匿名登陆不上?

由 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&gt; ` PHP源码: 
 20&gt; 
 21&gt; * * *
 22&gt; 
 23&gt; `   
 24&gt;    
 25&gt;  # This is a basic ProFTPD configuration file.   
 26&gt;    
 27&gt;  # It establishes a single server   
 28&gt;    
 29&gt;  # and a single anonymous login. It assumes that you have a user/group   
 30&gt;    
 31&gt;  # "nobody" and "ftp" for normal operation and anon.   
 32&gt;    
 33&gt;  # To enable anonymous login remove the ftp user in /etc/ftpusers   
 34&gt;    
 35&gt;    
 36&gt;    
 37&gt;  ServerName  "Linux proftpd server"   
 38&gt;    
 39&gt;  ServerType standalone   
 40&gt;    
 41&gt;  DefaultServer on   
 42&gt;    
 43&gt;  DefaultRoot  ~  ftpusers   
 44&gt;    
 45&gt;    
 46&gt;    
 47&gt;  ScoreboardFile  /var/  run  /  proftpd  .  scoreboard   
 48&gt;    
 49&gt;  SystemLog  /var/  log  /  proftpd  .  log   
 50&gt;    
 51&gt;    
 52&gt;    
 53&gt;  #More log.   
 54&gt;    
 55&gt;  #ExtendedLog /var/log/activity-ftp.log read,write   
 56&gt;    
 57&gt;    
 58&gt;    
 59&gt;  # Port 21 is the standard FTP port.   
 60&gt;    
 61&gt;  Port 21   
 62&gt;    
 63&gt;  # Umask 022 is a good standard umask to prevent new dirs and files   
 64&gt;    
 65&gt;  # from being group and world writable.   
 66&gt;    
 67&gt;  Umask 022   
 68&gt;    
 69&gt;    
 70&gt;    
 71&gt;  # To prevent DoS attacks, set the maximum number of child processes   
 72&gt;    
 73&gt;  # to 30. If you need to allow more than 30 concurrent connections   
 74&gt;    
 75&gt;  # at once, simply increase this value. Note that this ONLY works   
 76&gt;    
 77&gt;  # in standalone mode, in inetd mode you should use an inetd server   
 78&gt;    
 79&gt;  # that allows you to limit maximum number of processes per service   
 80&gt;    
 81&gt;  # (such as xinetd)   
 82&gt;    
 83&gt;  MaxInstances 30   
 84&gt;    
 85&gt;    
 86&gt;    
 87&gt;  # Set the maximum number of seconds a data connection is allowed   
 88&gt;    
 89&gt;  # to "stall" before being aborted.   
 90&gt;    
 91&gt;  TimeoutStalled 300   
 92&gt;    
 93&gt;    
 94&gt;    
 95&gt;  # Set the user and group that the server normally runs at.   
 96&gt;    
 97&gt;  User nobody   
 98&gt;    
 99&gt;  Group nobody   
100&gt;    
101&gt;    
102&gt;    
103&gt;  # Normally, we want files to be overwriteable.   
104&gt;    
105&gt;  &lt; Directory  /*&gt;   
106&gt;    
107&gt;  AllowOverwrite on   
108&gt;    
109&gt;     
110&gt;    
111&gt;    
112&gt;    
113&gt;  # This is intended to protect you from those nasty DoS cpu burner attacks   
114&gt;    
115&gt;  <global>   
116&gt;    
117&gt;  DenyFilter *.*/   
118&gt;    
119&gt;  </global>   
120&gt;    
121&gt;    
122&gt;    
123&gt;  # A basic anonymous configuration   
124&gt;    
125&gt;  # To enable this remove the user ftp from /etc/ftpusers   
126&gt;    
127&gt;  &lt; Anonymous  /  home  /  ftp  &gt;   
128&gt;    
129&gt;  RequireValidShell off   
130&gt;    
131&gt;  User ftp   
132&gt;    
133&gt;  Group ftp   
134&gt;    
135&gt;  # We want clients to be able to login with "anonymous" as well as "ftp"   
136&gt;    
137&gt;  UserAlias anonymous ftp   
138&gt;    
139&gt;    
140&gt;    
141&gt;  # Limit the maximum number of anonymous logins   
142&gt;    
143&gt;  MaxClients 50   
144&gt;    
145&gt;    
146&gt;    
147&gt;  &lt;font color="#FF8  ` `</anonymouse></anonymous>
Published At
Categories with 服务器类
Tagged with
comments powered by Disqus