版本:rhel5.4;proftpd-1.3.3;mysql-5.1.44; 源码包安装
一直按照网上流行的
proftpd+mysql安装的方式在rhel4u6上安装都没有问题,在rhel5.4上却出现了问题;
加-nd 9 启动proftpd,debug 信息见下面:127.0.0.1 (::ffff:192.168.118.137[::ffff:192.168.118.137]) - ROOT PRIVS at main.c:1086
127.0.0.1 (::ffff:192.168.118.137[::ffff:192.168.118.137]) - SETUP PRIVS at main.c:1091
127.0.0.1 (::ffff:192.168.118.137[::ffff:192.168.118.137]) - session requested from client in unknown class
127.0.0.1 (::ffff:192.168.118.137[::ffff:192.168.118.137]) - performing module session initializations
127.0.0.1 (::ffff:192.168.118.137[::ffff:192.168.118.137]) - mod_cap/1.0: adding CAP_AUDIT_WRITE capability
127.0.0.1 (::ffff:192.168.118.137[::ffff:192.168.118.137]) - ROOT PRIVS at mod_quotatab.c:396
127.0.0.1 (::ffff:192.168.118.137[::ffff:192.168.118.137]) - RELINQUISH PRIVS at mod_quotatab.c:398
127.0.0.1 (::ffff:192.168.118.137[::ffff:192.168.118.137]) - ROOT PRIVS at mod_quotatab.c:3540
127.0.0.1 (::ffff:192.168.118.137[::ffff:192.168.118.137]) - RELINQUISH PRIVS at mod_quotatab.c:3547
127.0.0.1 (::ffff:192.168.118.137[::ffff:192.168.118.137]) - ROOT PRIVS at mod_quotatab.c:3556
127.0.0.1 (::ffff:192.168.118.137[::ffff:192.168.118.137]) - RELINQUISH PRIVS at mod_quotatab.c:3563
127.0.0.1 (::ffff:192.168.118.137[::ffff:192.168.118.137]) - mod_sql/4.2.4: defaulting to 'mysql' backend
127.0.0.1 (::ffff:192.168.118.137[::ffff:192.168.118.137]) - mod_ident/1.0: ident lookup disabled
127.0.0.1 (::ffff:192.168.118.137[::ffff:192.168.118.137]) - ROOT PRIVS at mod_delay.c:1447
127.0.0.1 (::ffff:192.168.118.137[::ffff:192.168.118.137]) - RELINQUISH PRIVS at mod_delay.c:1452
127.0.0.1 (::ffff:192.168.118.137[::ffff:192.168.118.137]) - mod_log: opening ExtendedLog '/var/log/proftplog/proftpd.log'
127.0.0.1 (::ffff:192.168.118.137[::ffff:192.168.118.137]) - ROOT PRIVS at mod_log.c:1390
127.0.0.1 (::ffff:192.168.118.137[::ffff:192.168.118.137]) - RELINQUISH PRIVS at mod_log.c:1392
127.0.0.1 (::ffff:192.168.118.137[::ffff:192.168.118.137]) - ROOT PRIVS at mod_auth.c:133
127.0.0.1 (::ffff:192.168.118.137[::ffff:192.168.118.137]) - opening scoreboard '/usr/local/var/proftpd.scoreboard'
127.0.0.1 (::ffff:192.168.118.137[::ffff:192.168.118.137]) - RELINQUISH PRIVS at mod_auth.c:135
127.0.0.1 (::ffff:192.168.118.137[::ffff:192.168.118.137]) - connected - local: ::ffff:192.168.118.138:21
127.0.0.1 (::ffff:192.168.118.137[::ffff:192.168.118.137]) - connected - remote : ::ffff:192.168.118.137:45488
127.0.0.1 (::ffff:192.168.118.137[::ffff:192.168.118.137]) - FTP session opened.
127.0.0.1 (::ffff:192.168.118.137[::ffff:192.168.118.137]) - dispatching PRE_CMD command 'AUTH GSSAPI' to mod_core
127.0.0.1 (::ffff:192.168.118.137[::ffff:192.168.118.137]) - dispatching PRE_CMD command 'AUTH GSSAPI' to mod_core
127.0.0.1 (::ffff:192.168.118.137[::ffff:192.168.118.137]) - dispatching POST_CMD_ERR command 'AUTH GSSAPI' to mod_sql
127.0.0.1 (::ffff:192.168.118.137[::ffff:192.168.118.137]) - dispatching LOG_CMD_ERR command 'AUTH GSSAPI' to mod_sql
127.0.0.1 (::ffff:192.168.118.137[::ffff:192.168.118.137]) - dispatching LOG_CMD_ERR command 'AUTH GSSAPI' to mod_log
127.0.0.1 (::ffff:192.168.118.137[::ffff:192.168.118.137]) - dispatching PRE_CMD command 'AUTH KERBEROS_V4' to mod_core
127.0.0.1 (::ffff:192.168.118.137[::ffff:192.168.118.137]) - dispatching PRE_CMD command 'AUTH KERBEROS_V4' to mod_core
127.0.0.1 (::ffff:192.168.118.137[::ffff:192.168.118.137]) - dispatching POST_CMD_ERR command 'AUTH KERBEROS_V4' to mod_sql
127.0.0.1 (::ffff:192.168.118.137[::ffff:192.168.118.137]) - dispatching LOG_CMD_ERR command 'AUTH KERBEROS_V4' to mod_sql
127.0.0.1 (::ffff:192.168.118.137[::ffff:192.168.118.137]) - dispatching LOG_CMD_ERR command 'AUTH KERBEROS_V4' to mod_log
127.0.0.1 (::ffff:192.168.118.137[::ffff:192.168.118.137]) - dispatching PRE_CMD command 'USER li' to mod_core
127.0.0.1 (::ffff:192.168.118.137[::ffff:192.168.118.137]) - dispatching PRE_CMD command 'USER li' to mod_core
127.0.0.1 (::ffff:192.168.118.137[::ffff:192.168.118.137]) - dispatching PRE_CMD command 'USER li' to mod_delay
127.0.0.1 (::ffff:192.168.118.137[::ffff:192.168.118.137]) - dispatching PRE_CMD command 'USER li' to mod_auth
127.0.0.1 (::ffff:192.168.118.137[::ffff:192.168.118.137]) - dispatching CMD command 'USER li' to mod_auth
127.0.0.1 (::ffff:192.168.118.137[::ffff:192.168.118.137]) - dispatching POST_CMD command 'USER li' to mod_sql
127.0.0.1 (::ffff:192.168.118.137[::ffff:192.168.118.137]) - dispatching POST_CMD command 'USER li' to mod_delay
127.0.0.1 (::ffff:192.168.118.137[::ffff:192.168.118.137]) - dispatching LOG_CMD command 'USER li' to mod_sql
127.0.0.1 (::ffff:192.168.118.137[::ffff:192.168.118.137]) - dispatching LOG_CMD command 'USER li' to mod_log
127.0.0.1 (::ffff:192.168.118.137[::ffff:192.168.118.137]) - dispatching PRE_CMD command 'PASS (hidden)' to mod_core
127.0.0.1 (::ffff:192.168.118.137[::ffff:192.168.118.137]) - dispatching PRE_CMD command 'PASS (hidden)' to mod_core
127.0.0.1 (::ffff:192.168.118.137[::ffff:192.168.118.137]) - dispatching PRE_CMD command 'PASS (hidden)' to mod_sql
127.0.0.1 (::ffff:192.168.118.137[::ffff:192.168.118.137]) - dispatching PRE_CMD command 'PASS (hidden)' to mod_delay
127.0.0.1 (::ffff:192.168.118.137[::ffff:192.168.118.137]) - dispatching PRE_CMD command 'PASS (hidden)' to mod_auth
127.0.0.1 (::ffff:192.168.118.137[::ffff:192.168.118.137]) - dispatching CMD command 'PASS (hidden)' to mod_auth
127.0.0.1 (::ffff:192.168.118.137[::ffff:192.168.118.137]) - no supplemental groups found for user 'li'
127.0.0.1 (::ffff:192.168.118.137[::ffff:192.168.118.137]) - ROOT PRIVS at mod_auth_pam.c:312
127.0.0.1 (::ffff:192.168.118.137[::ffff:192.168.118.137]) - RELINQUISH PRIVS at mod_auth_pam.c:482
127.0.0.1 (::ffff:192.168.118.137[::ffff:192.168.118.137]) - user 'li' authenticated by mod_sql.c
127.0.0.1 (::ffff:192.168.118.137[::ffff:192.168.118.137]) - ProFTPD terminating (signal 11)
127.0.0.1 (::ffff:192.168.118.137[::ffff:192.168.118.137]) - ProFTPD terminating (signal 11)
127.0.0.1 (::ffff:192.168.118.137[::ffff:192.168.118.137]) - FTP session closed.总是到mod_sql.c认证时,连接就断了;
请教各位大牛,这是怎么回事啊?看到这些密密麻麻http://www.hexiecn.net的数字和字母,我头都晕死了~!回复 2# yc1001aaa
呵呵,我也晕,其实看信息就是mod_sql这块卡住了,正常情况下,这个模块过去了,下面是mod_auth模块,不知道是哪个模块的问题,但是在4u6上安装就没有问题,觉得也有可能跟操作系统的配置有关,哪位大牛行行好,帮助一下我这个菜鸟吧:em03:回复 3# liyang234567
历史是在重复上演么?一年前,我安装proftpd+mysql遇到了这个问题,一年后,我同样在rhel5u4 64位上安装proftpd+mysql时遇到了这个问题,而我使用的解决方式还是一模一样,同样使用了debug,复制错误信息,查询,意外的发现,google的第一条竟然是我一年前发的同样的帖子,真是令我太激动了!
不过在今天,我已经把问题解决了,一年的时间,锻炼了自己的能力,也增长了知识和经验,问题还是那个问题,但我已不再是原来的我啦!:emn10:
说下原因吧:在proftpd的配置里加上 SQLAuthenticate on 。因为在rhel4u6上,不添加此条也正常使用,而在rhel5u4上,不添加此条就不行了。
--转自