下载了proftpd-1.2.9,安装好了
/etc/proftpd.conf文件如下:
ServerName "ProFTPD Default Installation"
ServerType standalone
DefaultServer on
Port 21
Umask 022
User nobody
Group nobody
RequireValidShell off
<Directory />
AllowOverwrite on
</Directory>
.....
<VirtualHost 202.117.4.20>
ServerName "tools"
Port 1234
User tools
Group ftpusers
MaxClients 30
<Directory /tools>
<Limit LOGIN>
AllowAll
</Limit>
<Limit WIRTE>
DenyAll
</Limit>
</Directory>
</VirtualHos>
然后我在shell中键入proftp start
出现错误:
error: name or service not known
error: unable to determine the IP address of '4h20.*.*.*'
我不知道该如何配置conf,看了别人的也没有看懂
你将tools变成系统用户后,按照如下写成你的proftpd.conf(注意老的作成备份别删),再试试:
ServerName "ProFTPD Default Installation"
ServerType standalone
DefaultServer on
AllowStoreRestart on
Port 21
Umask 022
MaxInstances 30
User nobody
Group nogroup
<Directory />
AllowOverwrite on
</Directory>
ServerName "ProFTPD Default Installation"
ServerType standalone
DefaultServer off
Umask 022
MaxInstances 30
User nobody
Group nogroup
RequireValidShell off
AllowStoreRestart on
<Directory />
AllowOverwrite on
</Directory>
ServerName "Linux FTP"
ServerType standalone
DefaultServer on
Port 21
Umask 022
MaxInstances 30
User nobody
Group nobody
RequireValidShell off
DefaultRoot /var/ftp
<Directory />
AllowOverwrite on
</Directory>
如果禁止anonymous登陆这样就行了:
ServerName "Linux FTP"
ServerType standalone
DefaultServer on
Port 21
Umask 022
MaxInstances 30
User nobody
Group nogroup
<Directory />
AllowOverwrite on
</Directory>
如果还有问题我怀疑你的安装或安装版本有问题。