首页 > 代码库 > centos 6 搭建ftp服务器支持匿名读写

centos 6 搭建ftp服务器支持匿名读写

转载请注明: 凌云物网智科嵌入式实验室: http://iot-yun.com/     郭文学<guowenxue@gmail.com>  

 

vsftpd在运行时一定要关闭SELinux,否则ftp用户登录的时候会出问题

 

vsftpd的配置文件:

[guowenxue@centos6 vsftpd]$ pwd/etc/vsftpd[guowenxue@centos6 vsftpd]$ sudo cat vsftpd.conf anonymous_enable=YESanon_world_readable_only=NOanon_upload_enable=YESanon_mkdir_write_enable=YESanon_other_write_enable=YESno_anon_password=YESchown_uploads=YESchown_username=lingyundelete_failed_uploads=YESlocal_enable=YESlocal_root=/var/ftp/anon_root=/var/ftp/pubwrite_enable=YESlocal_umask=022xferlog_enable=YESxferlog_file=/var/log/vsftpd.log#connect_from_port_20=YESftpd_banner=Welcome to my FTP service.listen=YES# Ban user leave the home directorychroot_local_user=YESpam_service_name=vsftpduserlist_enable=YESuserlist_deny=NOlisten_port=21connect_from_port_20=YES

 

允许登录的用户列表:

[guowenxue@centos6 vsftpd]$ sudo cat user_list anonymouslingyun

  

不允许登录的用户列表:

[guowenxue@centos6 vsftpd]$ sudo cat ftpusers # Users that are not allowed to login via ftprootbindaemonadmlpsyncshutdownhaltmailnewsuucpoperatorgamesnobody

  

 

 

centos 6 搭建ftp服务器支持匿名读写