LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 809|回复: 6

新手。问一个关于VSFTPD的问题,请各位DX帮忙解决一下。谢谢

[复制链接]
发表于 2007-5-25 15:15:23 | 显示全部楼层 |阅读模式
我的系统是 RedHat AS 4.0 的,装的是系统自带的VSFTPD。前两天配好了VSFTPD。开机两天FTP服务一切正常,今天断电重启服务器以后。VSFTPD不能关闭,但是可以启动,查看状态说vsftpd已死什么的,现在FTP无法登入了。vsftpd是独立运行的,在网上查了很多资料,发现别人也有同样问题,但是答复推荐的方式试过都是不行。现在重装VSFTP也不行。顺便问一下,VSFTPD的日志放在哪里。小弟是LINUX新手。
发表于 2007-5-25 22:55:16 | 显示全部楼层
Ubuntu的在/var/log/vsftpd.log。可以试试“locate vsftpd.log”。 kill -9也不行?
回复 支持 反对

使用道具 举报

发表于 2007-5-27 04:05:32 | 显示全部楼层
pkill vsftpd  这样应该可以关闭
回复 支持 反对

使用道具 举报

发表于 2007-5-28 22:04:15 | 显示全部楼层
用ps -e查看所有的进程,看看有没有vsftpd进程。它提示你已经关闭,应该是配置文件出错了。如果你是配置成独立启动该服务,请确认在/etc/vsftpd/vsftpd.conf或者/etc/vsftpd.conf里有listen=YES这一条。(前者对应于rpm包安装方式,后者是源码安装方式)
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-5-29 10:25:04 | 显示全部楼层
# By default the server will pretend to allow ASCII mode but in fact ignore
# the request. Turn on the below options to have the server actually do ASCII
# mangling on files when in ASCII mode.
# Beware that turning on ascii_download_enable enables malicious remote parties
# to consume your I/O resources, by issuing the command "SIZE /big/file" in
# ASCII mode.
# These ASCII options are split into upload and download because you may wish
# to enable ASCII uploads (to prevent uploaded scripts etc. from breaking),
# without the DoS risk of SIZE and ASCII downloads. ASCII mangling should be
# on the client anyway..
#ascii_upload_enable=YES
#ascii_download_enable=YES
#
# You may fully customise the login banner string:
#ftpd_banner=FTP
#
# You may specify a file of disallowed anonymous e-mail addresses. Apparently
# useful for combatting certain DoS attacks.
#deny_email_enable=YES
# (default follows)
#banned_email_file=/etc/vsftpd.banned_emails
#
# You may specify an explicit list of local users to chroot() to their home
# directory. If chroot_local_user is YES, then this list becomes a list of
# users to NOT chroot().
chroot_list_enable=YES
# (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
#+++user+++
chroot_local_user=YES
guest_enable=YES
guest_username=vsftpdVU
user_config_dir=/etc/vsftpd_user_conf
#---user---
pam_service_name=vsftpd
userlist_enable=YES
#enable for standalone mode
listen=YES
ftp_wrappers=YES
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-5-29 15:03:51 | 显示全部楼层
这是我的配置文件。今天试了,只有pkill vsftpd 可以关掉VSFTPD,但是我之前未重启前可以用虚拟用户登入,现在不行了。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-5-30 09:08:45 | 显示全部楼层
重装最新的VSFTPD问题解决。但是还是不知道什么原因会这样。哎。暂时先用了。谢谢各位热心的DX
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表