LinuxSir.cn,穿越时空的Linuxsir!

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

如果何让VSFTPD运行在 Standalone模式下

[复制链接]
发表于 2003-8-27 08:33:14 | 显示全部楼层 |阅读模式
请问如何让VSFTPD运行在STANDALONE模式下!
我的手册里看到用  listen=yes 就可以。可以当我运行FTP的时候出错误:
[root@QCY root]# ftp 192.168.0.6
Connected to 192.168.0.6 (192.168.0.6).
500 OOPS: could not bind listening socket
ftp>
我又在别的资料中看到加上tcp_wrappers=yes但是加上之后却提示
[root@QCY root]# ftp 192.168.0.6
Connected to 192.168.0.6 (192.168.0.6).
500 OOPS: unrecognised variable in config file

而且我在man vsftpd.conf里也没看到有这个参数
我的VSFTPD的版本vsftpd-1.1.0-1

希望大家给点提示!
发表于 2003-8-27 10:36:53 | 显示全部楼层
你的网卡没有激活~~

不过我看资料上说还需要改/etc/xinetd/vsftpd
把disable改为yes。
不过我改了后。连都连不起来了。。
 楼主| 发表于 2003-8-27 12:37:03 | 显示全部楼层
网卡没有激活?如果我的设置注释掉,在连就没有问题!

如果要激活应该怎么做!
发表于 2003-8-27 15:17:12 | 显示全部楼层
我只是猜测网卡可能没激活。。

激活。系统设置-网络里就可以。
或ifconfig eth0 up
 楼主| 发表于 2003-8-27 15:29:44 | 显示全部楼层
网卡肯定是活动的。我把我的配置文件也发上来大家看一下有没有什么问题:

anonymous_enable=YES


local_enable=YES
local_root=/var/ftp
#chroot_local_user=YES

write_enable=YES

local_umask=022

anon_upload_enable=YES
anon_root=/var/ftp/pub
anon_umask=033

#anon_mkdir_write_enable=YES
ftp_username=ftp


dirmessage_enable=YES

xferlog_enable=YES

connect_from_port_20=YES

chown_uploads=YES
chown_username=ftpadmin

xferlog_file=/var/log/vsftpd.log

xferlog_std_format=YES

idle_session_timeout=600

data_connection_timeout=120

max_clients=50


anon_max_rate=512000
local_max_rate=5120000

#nopriv_user=ftpsecure

#async_abor_enable=YES

#ascii_upload_enable=YES
#ascii_download_enable=YES
#

ftpd_banner=Welcome to blah FTP service.

deny_email_enable=YES
# (default follows)
banned_email_file=/etc/vsftpd.banned_emails

chroot_list_enable=YES
# (default follows)
chroot_list_file=/etc/vsftpd.chroot_list

ls_recurse_enable=YES

pam_service_name=vsftpd


#port_enable=YES
#enable for standalone mode
#listen=YES
#listen_port=21       

用上面的配置文件,FTP的时候本地用户能正常登录,但匿名用户却不能登录提示如下:
Name (192.168.0.6:root): ftp
331 Please specify the password.
Password:
500 OOPS: vsftpd: refusing to run with writable anonymous root
Login failed.
421 Service not available, remote server has closed connection

希望大家能帮着解决一下。
 楼主| 发表于 2003-8-28 10:59:58 | 显示全部楼层
顶一下。
发表于 2003-8-28 11:49:29 | 显示全部楼层
你把这一行去掉了,那不就是 xinetd模式了。
发表于 2003-8-28 12:04:05 | 显示全部楼层
去掉ftp_username=ftp这个看看
反正默认都是ftp
发表于 2003-8-28 16:58:10 | 显示全部楼层

tcp_wrapper的使用是有条件的

这个服务必须能支持、调用libwrap时才能用tcp wrap来控制某个服务的acl

对于vsftpd,man中也提到这点
If enabled, and vsftpd was compiled with  tcp_wrappers support,incoming  connections  will  be  fed through tcp_wrappers access control.
发表于 2003-8-28 16:59:04 | 显示全部楼层
重新编译或者找个支持wrap的包重新安装
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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