`
gaojin
  • 浏览: 44116 次
  • 性别: Icon_minigender_1
  • 来自: 湖北
社区版块
存档分类
最新评论

vsftpd-2.2.2 centos6.4下简单配置

 
阅读更多

yum install vsftpd

---------------------------------------------------------------

vi /etc/vsftpd/vsftpd.conf

---------------------------------------------------------------

anonymous_enable=NO 禁止匿名访问
ascii_upload_enable=YES 允许使用ascii码上传
ascii_download_enable=YES 允许使用ascii码下载
userlist_deny=NO 这条需手动添加到最后,使用FTP用户表,表里没有的用户需要添加才能登录
---------------------------------------------------------------
vi /etc/vsftpd/user_list 删掉其他用户,加入root用户

---------------------------------------------------------------

root

---------------------------------------------------------------

vi /etc/vsftpd/ftpusers 注释被禁止登录的root用户

---------------------------------------------------------------

# Users that are not allowed to login via ftp

#root
bin
daemon
adm
lp
sync
shutdown
halt
mail
news
uucp
operator
games
nobody

---------------------------------------------------------------
chkconfig vsftpd on 开机自动启动

---------------------------------------------------------------

getsebool -a |grep ftpd
---------------------------------------------------------------
allow_ftpd_anon_write --> off
allow_ftpd_full_access --> off(注意这条)
allow_ftpd_use_cifs --> off
allow_ftpd_use_nfs --> off
ftpd_connect_db --> off
ftpd_use_passive_mode --> off
---------------------------------------------------------------

setsebool -P ftp_home_dir 1
setsebool -P allow_ftpd_full_access 1
---------------------------------------------------------------
service vsftpd restart

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics