LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 858|回复: 5

关于proftp

[复制链接]
发表于 2003-11-20 22:05:29 | 显示全部楼层 |阅读模式
大家不要骂先啊,该看的贴我都看了,但是还是搞不定啊.
我是宽带,ip是192.168.1.7,我装的是proftpd-1.2.8rc2-1.i386.rpm,proftpd-inetd-1.2.8rc2-1.i386.rpm.proftpd-standalone-1.2.8rc2-1.i386.rpm
和一个图形界面gproftpd-8.0.4-2.i386.rpm
我同学跟我同是宽带同一个hub,但是怎么连都连不上,就像根本没有ftp那样.
我把防火墙级别降到中等还是不行,ps查看已经在运行了,怎么一点反应都没有的?
proftp.conf配置如下:
ServerType standalone
DefaultServer on
Umask 022
RequireValidShell off
ServerIdent off
ServerName "My RedHat FTP Server"
ServerAdmin docterling@163.com
ServerIdent on "Welcome to Docterling's Server"
IdentLookups off
UseReverseDNS off
Port 21
TimesGMT off
User nobody
MaxHostsPerUser 2 "Sorry,connection is full!!!"
MaxClientsPerHost 1 "Sorry,only one connection per one IP!!!"
MaxInstances 2
MaxLoginAttempts 15
TimeoutLogin 60
TimeoutNoTransfer 60
User nobody
Group nobody
MaxClients 10
DefaultTransferMode binary
DisplayLogin welcome.msg
DisplayFirstChdir .message
AllowForeignAddress on
AllowRetrieveRestart on
AllowStoreRestart on
DeleteAbortedStores off
TransferRate RETR 1024
TransferRate STOR 2048
TransferRate STOU 2048
TransferRate APPE 2048
<Global>
  <Limit LOGIN>
    DenyALL
  </Limit>
</Global>
#--End of the main configuration--#
马上就要毕业了,唉,一声长叹.
发表于 2003-11-20 22:28:17 | 显示全部楼层
你本机自己能连上吗 TELNET到21端口看看
 楼主| 发表于 2003-11-22 10:20:31 | 显示全部楼层
自己本机也不行啊,telnet 168.68.1.7:21也不行
telnet: 168.68.1.7:21: Name or service not known
168.68.1.7:21: Host name lookup failure
不知道是什么原因
 楼主| 发表于 2003-11-22 13:27:53 | 显示全部楼层
现在自己本机能了,不过要用户名和密码
不是设有Anonymous了么,怎么还要的
不过同一个hub中的其他人还是不行
发表于 2003-11-23 12:59:16 | 显示全部楼层
老兄配置文件里没anonymous的内容呀?
 楼主| 发表于 2003-11-24 13:44:56 | 显示全部楼层
我改过了:
# 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 "My RedHat FTP Server"
ServerAdmin docterling@163.com
ServerType standalone
DefaultServer on

RequireValidShell off

ServerIdent off
UseReverseDNS off
IdentLookups off

DefaultRoot ~

# 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
MaxLoginAttempts 10

# Set the user and group that the server normally runs at.
User ftp
Group ftp

# Normally,we want files to be overwriteable.
<Directory />
AllowOverwrite on
</Directory>

TimeoutIdle 100
TimeoutLogin 100
TimeoutNoTransfer 100
TimeoutStalled 100

AllowOverwrite on
AllowStoreRestart on



<Anonymous /home/ftp>
User ftp
Group ftp
# We want clients to be able to login with "anonymous" as well as "ftp"
UserAlias anonymous ftp

AnonRequirePassword   off
Umask 022

TransferRate RETR 200:100   #download rate 200k/s
TransferRate APPE,STOR 500:1024  #upload rate 500k/s

MaxClients 10
MaxClientsPerHost 1

# We want '.message' displayed at login.
DisplayLogin .welmsg
DisplayFirstChdir .message

<Limit LOGIN>
AllowAll
</Limit>

<Limit DELE WRITE STOR>
DenyAll
</Limit>

<Directory upload>
<Limit WRITE READ STOR>
AllowAll
</Limit>
</Directory>

<Directory pub>
<Limit WRITE STOR>
DenyAll
</Limit>
<Limit READ>
AllowAll
</Limit>
</Directory>

</Anonymous>

在gftp中提示是:
Looking up 192.168.1.7
Trying192.168.1.7:21
connected to 192.168.1.7:21
220 docterling.damain FTP server ready
USER anonymous
331 Anonymous login ok,send your complete email adress as your password
PASS XXXX
530-Uable to set anonymous privileges
530 Login incorrect
怎么不能设置匿名权限,是哪里出错了呢
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表