我的proftpd为什么能登陆而不能显示目录?

由 silver810212 在 12-26-2002 17:02 发表:

我的proftpd为什么能登陆而不能显示目录?

[root@silver root]# ftp 61.183.182.68

Connected to 61.183.182.68 (61.183.182.68).

220 silver FTP server ready.

Name (61.183.182.68:root): ljt

331 Password required for ljt.

Password:

230 User ljt logged in.

Remote system type is UNIX.

Using binary mode to transfer files.

ftp> ls

227 Entering Passive Mode (192,168,0,250,253,88).

421 No Transfer Timeout (300 seconds): closing control connection.

ftp>


生命不息,学习不止!

你帮助我,我也帮助你。

MSN:[email protected]


由 silver810212 在 12-26-2002 18:04 发表:


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

RequireValidShell off

DefaultRoot /home/silver silver

Set the user and group that the server normally runs at.

User nobody

Group nobody

Normally, we want files to be overwriteable.

1<directory *="">   
2  
3AllowOverwrite on   
4  
5</directory>

#silver-personal

ServerIdent off

MaxLoginAttempts 3

MaxClientsPerHost 3 "对不起,每个ip只允许有1个连接!"

MaxHostsPerUser 3 "对不起,已经到达该用户最大连接数10,请您稍候再试"

PassivePorts 49152 65534

RateReadBPS 55000

RateWriteBPS 55000

#silver-personal

A basic anonymous configuration, no upload directories.

 1<anonymous ~silver="">   
 2  
 3  
 4  
 5User silver   
 6  
 7Group nobody   
 8  
 9AnonRequirePassword on   
10  
11DisplayLogin welcome.msg   
12  
13DisplayFirstChdir .message   
14  
15  
16  
17MaxClients 3   
18  
19<limit write="">   
20  
21AllowAll   
22  
23  
24  
25</limit>
26</anonymous>

生命不息,学习不止!

你帮助我,我也帮助你。

MSN:[email protected]


由 jamlee800 在 12-27-2002 13:08 发表:


你根本就没有为“ljt”配置访问目录。

我这个是可以正常工作的,你仔细看看

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 "GRC FTP Server"

ServerType standalone

DefaultServer on

Port 21 is the standard FTP port.

Port 21

1<limit login="">   
2  
3DenyAll   
4  
5</limit>

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

DefaultRoot ~

Normally, we want files to be overwriteable.

1<directory></directory>

AllowRetrieveRestart on

AllowOverwrite on MaxLoginAttempts 3

A basic anonymous configuration, no upload directories.无须登录

 1<anonymous book="" ~ftp="">
 2<limit login="">   
 3  
 4AllowAll   
 5  
 6</limit>   
 7  
 8  
 9  
10User ftp   
11  
12Group ftp   
13  
14  
15  
16# We want clients to be able to login with "anonymous" as well as "ftp"   
17  
18UserAlias anonymous ftp   
19  
20  
21  
22# Limit the maximum number of anonymous logins   
23  
24MaxClients 10   
25  
26  
27  
28# We want 'welcome.msg' displayed at login, and '.message' displayed   
29  
30# in each newly chdired directory.   
31  
32DisplayLogin welcome.msg   
33  
34DisplayFirstChdir .message   
35  
36  
37  
38# Limit WRITE everywhere in the anonymous chroot   
39  
40<limit write="">   
41  
42DenyAll   
43  
44</limit>   
45  
46  
47  
48HideUser root   
49  
50HideGroup root   
51  
52  
53  
54</anonymous>
 1<anonymous ftp="" home="" lixin=""> #需要登录   
 2  
 3User lixin   
 4  
 5Group lixin   
 6  
 7UserAlias publx lixin   
 8  
 9AnonRequirePassword on   
10  
11MaxClients 2   
12  
13DisplayLogin welcome.msg   
14  
15DisplayFirstChdir .message   
16  
17  
18  
19<limit login="">   
20  
21AllowGroup lixin   
22  
23DenyAll   
24  
25</limit>   
26  
27  
28  
29  
30  
31GroupOwner lixin   
32  
33Umask 007   
34  
35  
36  
37HideUser root   
38  
39HideGroup root   
40  
41  
42  
43</anonymous>

你登录的用户名、密码必须是linux注册的用户名、密码,所要访问的目录的属性也必须是用户名有相应权限的。目录里当然还要有东西。


由 silver810212 在 12-27-2002 20:08 发表:


我是在服务器上作的端口映射。

用内网ip可以登陆.

用外网ip就不行

我在win2000中就非常正常,因此应该是proftpd的问题

楼上的兄弟:

如果配置的ftp,只要系统中有这个用户就可以登陆的。

[root@silver ljt-e]# ftp 192.168.0.250

Connected to 192.168.0.250 (192.168.0.250).

220 silver FTP server ready.

Name (192.168.0.250:ljt-e): ljt

331 Password required for ljt.

Password:

230 User ljt logged in.

Remote system type is UNIX.

Using binary mode to transfer files.

ftp> ls

227 Entering Passive Mode (192,168,0,250,254,159).

150 Opening ASCII mode data connection for file list

226 Transfer complete.

ftp> dir

227 Entering Passive Mode (192,168,0,250,230,4).

150 Opening ASCII mode data connection for file list

226 Transfer complete.

ftp> cd /

250 CWD command successful.

ftp> ls

227 Entering Passive Mode (192,168,0,250,236,107).

150 Opening ASCII mode data connection for file list

drwxr-xr-x 2 root root 4096 Dec 24 12:30 bin

drwxr-xr-x 4 root root 1024 Dec 24 13:50 boot

drwxr-xr-x 20 root root 118784 Dec 27 11:33 dev

drwxr-xr-x 67 root root 8192 Dec 27 11:33 etc

drwxr-xr-x 7 root root 4096 Dec 26 07:32 home

drwxr-xr-x 2

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus