Chinaunix首页 | 论坛 | 博客
  • 博客访问: 331815
  • 博文数量: 46
  • 博客积分: 1921
  • 博客等级: 上尉
  • 技术积分: 417
  • 用 户 组: 普通用户
  • 注册时间: 2008-06-03 17:07
文章分类

全部博文(46)

文章存档

2011年(19)

2010年(4)

2009年(11)

2008年(12)

我的朋友

分类: LINUX

2008-07-08 11:07:29

/etc/ vsftpd.ftpusers:定义ftp不能访问你的用户。

/etc/vsftpd.user_list:定义不能访问的用户名。

以上两个问题统一 才能确保该用户能够访问ftp服务。

 

/etc/vsftpd/vsftpd.conf:vsftpd.user_list文件默认情况进行设置,及匿名用户,其他用户上传,下载等问题!

 

如果要进入文件夹时,有banner提示信息,需要在此文件夹下建立.message文件。输入其banner信息。

使用方法:[root@localhost pub]# cat >/var/ftp/pub/.message

***********This is a test *******************

 

若要限制莫个网段或莫特定ip地址不能访问ftp服务,需要设置文件 /etc/host.deny

例如,限制网段192.168.1.0网段访问ftp服务器,需要做如下设置:(红色字体为添加内容)

[root@localhost etc]# vi hosts.deny

#

# hosts.deny    This file describes the names of the hosts which are

#               *not* allowed to use the local INET services, as decided

#               by the '/usr/sbin/tcpd' server.

#

# The portmap line is redundant, but it is left to remind you that

# the new secure portmap uses hosts.deny and hosts.allow.  In particular

# you should know that NFS uses portmap!

 vsftpd:192.168.1.0/255.255.255.0

 

注意:不能使用192.168.1.0/24这种表示方法。

 

服务启动:service vsftpd start/stop/restart

 

阅读(1339) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~