在mandranker9.2下用proftp1.28
proftp.cong如下
ServerName"chiame 的 ftp服务器"
ServerTypeinetd
DefaultServeron
Port21
Umask022
RootLogin off
RequireValidShell off
MaxInstances30
MaxClients 5
AllowStoreRestart on
PassivePorts 65400 65420
Usernobody
Groupnogroup
TimeGMT off
DefaultRoot ~badbird
AllowOverwriteon
Denyall
User ftp
Group ftp
UserAlias anonymous ftp
UserAlias nogoodbird ftp
DisplayLogin welcome.msg
DisplayFirstChdir .msg
MaxClients 30
Denyall
Denyall
Allowall
里面对应的目录和用户,用户所在的群都存在,重新启动xinetd后
用
netstat -tlnp
看到以下信息
tcp 0 0.0.0.0:21 0.0.0.0.* LISTEN 5658/xinetd
说明ftp服务器已经启动,但是我用
ftp localhost的 时候就是提示
Connected to localhost
421 Service not available ,remote server has closed connection
然后就什么都作不了,help样!
|
你机器的ip地址或者主机名没加到服务器的配置文件中,查查
你主机有没有登陆权限