Put the address first:
Http://www.cnblogs.com/itech/archive/2012/09/16/2687378.html
Http://www.cnblogs.com/acpp/archive/2010/02/09/1666649.html
No FTP command, so install the FTP server first, check the next, VSFTPD is the most used, the general system preinstalled. is also a powerful function. Rookie one, first look at the server version, and then see the same configuration of the same company another server also installed this is installed.
First look at whether there is an installation:
Rpm-qa | grep VSFTPD If there's no result, it's not installed.
Then install:
Yum-y Install VSFTPD
Start:
Service VSFTPD Start
Test Login:
If a oops:cannot change directory:/home/********* appears
Workaround: Enter Setsebool Ftpd_disable_trans 1 on the terminal and restart the VSFTP Services service vsftpd Restart if you enter the above command: Could not change active Booleans: Invalid Boolean is due to selinux problem followed by the terminal input: Setsebool ftp_home_dir=1 Restart VSFTP service can solve the problem
Of course there are subsequent permissions settings, because no, so the company server did not move, and so on. First glue the settings:
=============================================================================================3, configuring vsftpd # Whereis vsftpd vsftpd:/usr/sbin/vsftpd/etc/vsftpd/usr/share/man/man8/vsftpd.8.gz yum installation of the main directory for the above 3 directories, Where the configuration file vsftpd.conf in/etc/vsftpd, see below How to configure the vsftpd.conf # default profile:/etc/vsftpd.conf # Here are the options and instructions for configuring ######### core settings ########### # allow local users to log on local_enable=yes # Write permissions for Local Users write_enable=yes # use FTP local file permissions, default to 077 # general set to 022 local_umask=022 # # Displays the contents of the directory when switching directories. Message dirmessage_enable=yes dirlist_enable = no #验证方式 #pam_service_name =vsftpd # enable data connections for FTP data ports connect_from_port_20=yes # Run listen=yes # with stand-alone FTP service modify connection port #listen_port =2121 ######### Anonymous login Settings # # ######### # Allow Anonymous Logon anonymous_enable=no # if anonymous login is allowed # if anonymous upload permission is turned on #anon_upload_enable =yes # If Anonymous Logon is allowed # allows you to create folders anonymously and upload files within folders #anon_mkdir_write_ enable=yes # If you allow anonymous logons # anonymous accounts can have delete permissions #anon_other_write_enable =yes # If you allow Anonymous Logon # anonymous download permissions # anonymous to other, you can set the directory/File properties control #anon_world_readable_only =no # If Anonymous Logon # is allowed to limit the transfer rate of anonymous users, the unit bite #anon_max_rate =30000 ######### user throttling settings ########### #### Restrict login # use UserList to restrict user access #userlist_enable =yes # List of people not allowed to access #userlist_deny =no # Limit list file placement path #userlist_file =/etc/vsftpd/userlist_deny.chroot #### Restrict directory # restrict all users to home #chroot_local_user =yes # Call the user list that restricts the home directory chroot_list_enable=yes # the path to the user list that restricts the home directory chroot_list_file=/etc/vsftpd/ chroot_list ######### Log Settings ########### # log file path settings xferlog_file=/var/log/ Vsftpd.log # activate the upload/download log xferlog_enable=yes # Use the standard log format #xferlog_std_format =yes ######### security Settings ########### # User idle timeout, in seconds #idle_session_timeout =600 # Data Connection idle timeout, in seconds #data_connection_timeout =120 # Disconnect the client after 1 minutes of inactivity #accept_ timeout=60 # interrupt after 1 minutes reconnect #connect_timeout =60 # Local user transfer rate, unit bite #local _max_rate=50000 # maximum number of connections for FTP #max_clients =200 # maximum connections per IP #max_per_ip =5 ######### Passive Mode setting ########### # whether to open a passive mode pasv_enable=yes # Passive mode min Port pasv_min_port=5000 # passive mode maximum port pasv_max_port=6000 ## ####### Additional Settings ########### # welcome information ftpd_banner=welcome to FTP server! 4 add FTP firewall rules: / Sbin/iptables-i input-p TCP--dport 21-j accept /etc/rc.d/init.d/iptables save /etc/init.d/iptables reStart 5 Add User (Note that add nologin type user ftpuser): useradd-d/home/ftp-s/sbin/nologin ftpuser If VSFTPD is started, restart pkill vsftpd/usr/sbin/vsftpd &
Linux installation vsftpd