Vsftp服务器配置

Linux5 FTP配置参数
Vsftp服务器                                                                       
#rpm -qa | grep vsftpd    //查询ftp版本
vsftpd-2.0.5-10.el5
 
#service vsftpd start      //启动ftp服务
为vsftpd启动vsftpd:                             [确定]
 
#service vsftpd status     //检查ftp服务状态
vsftpd (pid 3571) 正在运行...
 
FTP服务器IP为172.16.0.10,允许匿名用户上传下载。开设一front用户,属于ftp组;不允许登录linux系统,只能登录FTP服务器。FTP采用PASV工作模式,允许ASCII模式来上传或下载数据,允许最多同时连接100用户;每个客户允许同时与服务器建立5个连接,每个用户的访问速度限制为1M;定制欢迎信息为:" welcome to ftp.mylinux "  。
 
# ifconfig eth0 172.16.0.10 netmask 255.255.0.0      // 设置主机IP地址
# ifconfig eth0 down                             
# ifconfig eth0 up                               
# rpm -qa | grep vsftpd       // 查看是否已安装vsftpd服务                       
  vsftpd-2.0.5-10.el5                          
# service vsftpd restart                         
# useradd front -g ftp        // 创建front用户至ftp组中                  
#vi /etc/passwd                // 编辑passwd文件使front用户不能登录linux系 统 
front:x:500:50::/home/front:/bin/bash/nologin                                                      
#vi /etc/vsftpd/vsftpd.conf         // 编辑vsftpd.conf文件   
anonymous_enable=YES                                                                               
local_enable=YES                                                                                    
write_enable=YES                                                                                     
local_umask=022                                                                                     
anon_upload_enable=YES                                                                              
anon_mkdir_write_enable=YES                                                                         
xferlog_enable=YES                                                                                  
connect_from_port_20=YES                                                                            
xferlog_file=/var/log/vsftpd.log                                                                     
xferlog_std_format=YES                                                                              
ascii_upload_enable=YES         // 允许ASCII模式来上传或下载数据  
ascii_download_enable=YES                                                                            
ftpd_banner=Welcome to ftp.mylinux                                                       
listen=YES                                                                                          
local_max_rate=1000000        // 每个用户的访问速度限制为512K        
anon_max_rate=1000000                                                                               
max_clients=100                     // 允许最多同时连接100个用户               
max_per_ip=5                        // 允许客户端同时与服务器建立5个连接           
pasv_enable=YES                   // ftp服务器采用PASV工作模式                                      
pasv_max_port=0                                                                                   
pasv_min_port=0                                                                                    
pam_service_name=vsftpd                                                                            
userlist_enable=YES                                                                                
tcp_wrappers=YES      

你可能感兴趣的:(服务器,职场,休闲)