- 论坛徽章:
- 0
|
50可用积分
redhat as 3升级vsftpd的几个不解的地方,急
今天升级as 3的vsftpd,先找了个vsftpd-2.0.1-5.EL4.3.i386.rpm,后发现rpm -U升级时依赖包太多,于是找了个vsftpd-2.0.4.tar.gz,先rpm -e卸载系统自带的vsftpd1.02,过程顺利,解压vsftpd-2.0.4.tar.gz,然后make,一直没有报错,make install时提示
=======
install: 无法创建一般文件‘/usr/local/man/man8/vsftpd.8’: 没有那个文件或目录install: 无法创建一般文件‘/usr/local/man/man5/vsftpd.conf.5’: 没有那个文件或目录
===============
手动创建以上两个目录,重新make install,ok
copy此目录下的vsftpd.conf 到/etc/vsftpd下
执行setup在服务里可以看到vsftpd,但是在/etc/init.d目录下没有vsftpd文件,启动等级是3,于是去/etc/rc.d/rc3.d下找也没有发现。(问题1)。用客户端连接,始终报不能定向到/var/ftp目录。发现没有此目录。创建目录后匿名用户可以登录。
修改/etc/vsftpd/vsftpd.conf.
========================================================================================================================
[root@buptdes03 vsftpd]# more 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
idle_session_timeout=300
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd.chroot_list
pam_service_name=vsftpd
userlist_enable=YES
listen=YES
tcp_wrappers=YES
========================================================================================================
由于找不到启动或者关闭vsftpd的脚本,不得已只有重起机器。重起以后发现客户端的匿名用户仍然可以登录,但是本地用户还是不可以登录。
==============================================
[右] 再次尝试失败
[右] 正在连接到 ****** -> IP=******** PORT=21
[右] 正在连接到 *******
[右] 220 (vsFTPd 2.0.4)
[右] USER develop
[右] 530 This FTP server is anonymous only.
[右] 连接失败
[右] 正在延迟 10 秒, 之后将尝试第 1 次重新连接
[右] 正在连接到 *********-> IP=******* PORT=21 (第 1 次尝试)
[右] 正在连接到 ***********
[右] 220 (vsFTPd 2.0.4)
[右] USER develop
[右] 530 This FTP server is anonymous only.
[右] 连接失败
[右] 正在延迟 10 秒, 之后将尝试第 2 次重新连接
==============================================
这是第二个问题。
大虾帮忙看看,是我的配置文件哪有错吗?
哪位知道的话 帮忙指导指导,小弟不胜感激。另外怎么不重起机器来重新启动vsftpd呢?
急
[ 本帖最后由 yuio654 于 2007-5-15 18:24 编辑 ] |
最佳答案
查看完整内容
killall -9 vsftpd 关闭/opt/vsftpd2/vsftpd-2.0.4/vsftpd /etc/vsftpd/vsftpd.conf 启动用户需要有合法的shell, 即/etc/shells 力规定的那些。有密码就可以登录了。
|