免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2378 | 回复: 5

编译安装vsftpd没有成功,但是rpm安装就可以,问题待解决 [复制链接]

论坛徽章:
0
发表于 2009-09-03 15:32 |显示全部楼层
做了两天的实验,还是不成功,
环境是asianux 3.0 sp2 x86_64,系统为最小化安装,
vsftpd版本为 vsftpd-2.2.0,官方下载的,
第一:
    首先在编译安装的时候提示的库找不到。
    解决办法:我将vsf_findlibs.sh脚本文件中的库文件路径都修改为/lib64/...,之后就可以编译。
第二:
    我在配置过程中发现编译安装的怎么的都不支持虚拟用户的功能,然后我找了一个同样环境机器的用rpm安装就可以支持虚拟用户,我看到配置文件中只有一点不同就是:
    rpm安装的有个选项打开了tcp_wrappers=YES,
   然而编译安装的却没有,就算是打开了之后在启动vsftpd的时候也提示编译的时候没有将tcp_wrappers编译进来,所有我将编译安装的文件都删除之后重新编译,更改了头文件中的builddefs.h中的选项#undef VSF_BUILD_TCPWRAPPERS变为#dfineVSF_BUILD_TCPWRAPPERS,然后再次重新编译,安装.
    虽然安装之后支持了tcp_wrappers,但是还是不支持虚拟用户.
    我用的配置文件都是在rpm安装测试成功的(这些配置是支持虚拟用户的),直接拷贝过来的,问题不知道出在什么地方?
    我的/etc/pam.d/vsftpd文件配置在两种安装方法中也都相同。
以下是我的/etc/vsftpd.conf配置文件内容
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_file=/var/log/vsftpd.log
xferlog_std_format=YES
listen=YES
pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES
guest_enable=YES
guest_username=ftpvuser
以下是我/etc/pam.d/vsftpd配置内容:
auth        required    pam_userdb.so    db=/etc/vsftpd/vsftpd_login
account        required    pam_userdb.so    db=/etc/vsftpd/vsftpd_login

    问题没有解决,待续,可能是这个vsftpd版本在asianux中有bug,我会到其他系统,如redhat或是在这个系统上用其他版本实验的。如果发现了问题一定和大家分享!

论坛徽章:
34
亥猪
日期:2015-03-20 13:55:11戌狗
日期:2015-03-20 13:57:01酉鸡
日期:2015-03-20 14:03:56未羊
日期:2015-03-20 14:18:30子鼠
日期:2015-03-20 14:20:14丑牛
日期:2015-03-20 14:20:31辰龙
日期:2015-03-20 14:35:34巳蛇
日期:2015-03-20 14:35:56操作系统版块每日发帖之星
日期:2015-11-06 06:20:00操作系统版块每日发帖之星
日期:2015-11-08 06:20:00操作系统版块每日发帖之星
日期:2015-11-19 06:20:00黄金圣斗士
日期:2015-11-24 10:43:13
发表于 2009-09-03 15:40 |显示全部楼层
缺什么添什么,不是有错误信息么?

论坛徽章:
0
发表于 2009-09-03 15:43 |显示全部楼层

回复 #2 vermouth 的帖子

在我把错误信息都解决了之后还是不行,我看日志只是说tom登录失败,tom是我建立的虚拟用户,映射成ftpvuser这个系统用户上了。剩下就没有其他错误信息了。不知道哪位鹏到过此类现象,分享一下经验。

论坛徽章:
0
发表于 2009-09-03 16:07 |显示全部楼层
自己先顶一下!

论坛徽章:
0
发表于 2009-09-03 18:11 |显示全部楼层
发下我的配置文件vsftpd.conf

#upload=YES

anonymous_enable=YES

# Uncomment this to allow local users to log in.

local_enable=YES

write_enable=YES

local_umask=077

anon_upload_enable=YES

anon_umask=022

anon_mkdir_write_enable=YES

anon_other_write_enable=YES

anon_upload_enable=YES

guest_enable=YES
#

dirmessage_enable=YES

xferlog_enable=YES

connect_from_port_20=YES

#chown_uploads=YES

#file_open_mode=0777

#chown_username=ftp
# below.
# (default follows)
#chroot_list_file=/etc/vsftpd/chroot_list
#
# You may activate the "-R" option to the builtin ls. This is disabled by
# default to avoid remote users being able to cause excessive I/O on large
# sites. However, some broken FTP clients such as "ncftp" and "mirror" assume
# the presence of the "-R" option, so there is a strong case for enabling it.
#ls_recurse_enable=YES
#
# When "listen" directive is enabled, vsftpd runs in standalone mode and
# listens on IPv4 sockets. This directive cannot be used in conjunction
# with the listen_ipv6 directive.
listen=YES
#
# This directive enables listening on IPv6 sockets. To listen on IPv4 and IPv6
# sockets, you must run two copies of vsftpd whith two configuration files.
# Make sure, that one of the listen options is commented !!
#listen_ipv6=YES

pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES

论坛徽章:
0
发表于 2009-09-03 18:16 |显示全部楼层

回复 #5 yijiajing 的帖子

你的配置问价只是打开了虚拟用户的功能,但是虚拟用户映射成哪个系统用户呀,你这没有写配,你现在可以用虚拟用户登录?你确定?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP