为什么这个ftp连接不上?
目前修改后的配置文件如下:
ServerName "MY FTP!"
ServerType standalone
DefaultServer on
Port 21
Umask 002
MaxInstances 30
User ftp
Group ftp
AllowOverwrite on
UseReverseDNS off
IdentLookups off
<Limit SITE_CHMOD>
DenyAll
</Limit>
SQLAuthTypes Plaintext Backend
SQLConnectInfo proftpd@localhost root 123456
SQLUserInfo users userid passwd uid gid homedir shell
RequireValidShell off
SQLAuthenticate users
SQLHomedirOnDemand on
SQLDefaultGID 11111
SQLDefaultUID 11111
SQLMinUserGID 11111
SQLMinUserUID 11111
QuotaDirectoryTally on
QuotaDisplayUnits "Kb"
QuotaEngine on
QuotaLog "/usr/proftpd/var/quota"
QuotaShowQuotas on
SQLNamedQuery get-quota-limit SELECT "name, quota_type, per_session, limit_type, byteserials_in_avail,byteserials_out_avail, byteserials_xfer_avail, fileserials_in_avail, fileserials_out_avail, fileserials_xfer_avail FROM quotalimits WHERE name = '%{0}' AND quota_type = '%{1}'"
SQLNamedQuery get-quota-tally SELECT "name, quota_type, byteserials_in_used, byteserials_out_used,byteserials_xfer_used, fileserials_in_used, fileserials_out_used, fileserials_xfer_used FROM quotatallies WHERE name = '%{0}' AND quota_type = '%{1}'"
SQLNamedQuery update-quota-tally UPDATE "byteserials_in_used = byteserials_in_used + %{0},byteserials_out_used = byteserials_out_used + %{1}, byteserials_xfer_used = byteserials_xfer_used + %{2},fileserials_in_used = fileserials_in_used + %{3}, fileserials_out_used = fileserials_out_used + %{4}, fileserials_xfer_used = fileserials_xfer_used + %{5} WHERE name = '%{6}' AND quota_type = '%{7}'" quotatallies
SQLNamedQuery insert-quota-tally INSERT "%{0}, %{1}, %{2}, %{3}, %{4}, %{5}, %{6}, %{7}" quotatallies
QuotaLimitTable sql:/get-quota-limit
QuotaTallyTable sql:/get-quota-tally/update-quota-tally/insert-quota-tally
<Anonymous /var/ftp>
User ftp
Group ftp
UserAlias anonymous ftp
MaxClients 10
DisplayLogin welcome.msg
DisplayFirstChdir .message
<Limit WRITE>
AllowAll
</Limit>
</Anonymous>
数据库的记录:
mysql> select * from users;
+--------+-----------+----------+----------+----------------------+-------+
| userid | passwd | uid | gid | homedir | shell |
+--------+-----------+----------+----------+----------------------+-------+
| test | 123456 | 11111 | 11111 | /usr/proftpd/test | NULL |
+--------+-----------+----------+----------+----------------------+-------+
但是连接服务器的时候一直提示:
状态:> 连接: Friday 12:26:36 05-12-2006
状态:> 正在连接到 192.168.0.88
状态:> 正在连接到 192.168.0.88 (ip = 192.168.0.88)
状态:> Socket 已连接。正在等待欢迎消息...
220 ProFTPD 1.2.10rc3 Server (MY FTP!) [localhost.localdomain]
状态:> 已连接,正在验证...
命令:> USER anonymous
331 Anonymous login ok, send your complete email address as your password.
命令:> PASS ********
就是这样,到现在还是不能用。。。
[ 本帖最后由 77902543 于 2006-5-12 12:38 编辑 ]
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(7)
把mysql的数据也帖上来了,在顶楼。。。。
以现在的配置文件运行,会提示:
May 12 09:19:18 localhost proftpd[1356] localhost.localdomain (192.168.0.145[192.168.0.145]): error: unable to stat() /usr/proftpd/var: No such file or directory
May 12 09:19:18 localhost proftpd[1356] localhost.localdomain (192.168.0.145[192.168.0.145]): FTP session opened.
May 12 09:19:19 localhost proftpd[1356] localhost.localdomain (192.168.0.145[192.168.0.145]): FTP session closed.但是/usr/proftpd/var是存在的,而且拥有者是ftp,也就是运行proftpd的用户
如果把有关quota的语句去掉,会提示:
May 12 09:10:46 localhost proftpd[1224] localhost.localdomain: ProFTPD 1.2.10rc3 (devel) (built 五 5月 12 08:27:41 CST 2006) standalone mode STARTUP
May 12 09:10:49 localhost proftpd[1225] localhost.localdomain (192.168.0.145[192.168.0.145]): FTP session closed.
但是如果把配置文件里有关sql的语句全部去掉,ftp可以正常工作
(现在连mysql启动都有问题,郁闷啊…………)
[ 本帖最后由 77902543 于 2006-5-12 09:18 编辑 ]
好象是mysql连接的问题,我把连接的帐号由test改为root以后就可以出现连接成功的提示了
但新的问题是:验证没法通过,不论是匿名的还是sql帐号都不可以
把SQLAuthTypes Plaintext Backend设置成这样
连接时显示:停在PASS那行就再也不动了
状态:> 正在连接到 192.168.0.124
状态:> 正在连接到 192.168.0.124 (ip = 192.168.0.124)
状态:> Socket 已连接。正在等待欢迎消息...
220 localhost.localdomain FTP server ready
状态:> 已连接,正在验证...
命令:> USER anonymous
331 Anonymous login ok, send your complete email address as your password.
命令:> PASS ********
匿名用户和SQL的都验证不通过,问题出在哪啊?
log如下:
May 11 13:09:13 localhost proftpd[8446] localhost.localdomain: ProFTPD 1.2.10rc3 (devel) (built 四 5月 11 12:05:00 CST 2006) standalone mode STARTUP
May 11 13:09:18 localhost proftpd[8447] localhost.localdomain (192.168.0.145[192.168.0.145]): FTP session opened.
May 11 13:09:18 localhost proftpd[8447] localhost.localdomain (192.168.0.145[192.168.0.145]): FTP session closed.
[ 本帖最后由 77902543 于 2006-5-11 13:09 编辑 ]
你说的问题还真是没遇到过啊,配置跟你差不多,没出问题啊,觉得是网络的问题了!
服务器上没有防火墙,在默认配置下可以访问
客户机上没有防火墙,其他的FTP可以正常连接
服务器上有防火墙吗?
客户机上有防火墙吗?
试试用被动方式访问试试!
ding yi xia~
gang xia de linux-mozilla ,da bu chu zhongwen.....