First, Aliyun Linux (Redhat) installation vsftp software
1. Update Yum Source
First need to update the system Yum source, convenient tool download address: Update_source.zip. It should be noted here that the file is currently unable to transfer, so want to run update_source.sh can only be opened with text, copy paste to the Aliyun server system run.
2. Install Vsftp
Install vsftp using the Yum command
#yum Install Vsftpd-y
3. Add FTP Account and directory
Check the position of the nologin first, usually under/usr/sbin/nologin or/sbin/nologin.
Create an account using the following command, which specifies the home directory of/ftp for user test, and you can define your own account name and directory:
#useradd-D/ftp-s/sbin/nologin test
Modify the account password:
#passwd Test
Modify permissions for the specified directory
#chown-R test:test/ftp
4. Configure Vsftp
Edit the Vsftp configuration file with the following command:
#vi/etc/vsftpd/vsftpd.conf
Change "Anonymous_enable=yes" to "Anonymous_enable=no" in the configuration file
Remove the annotation symbol before the following configuration:
#local_enable =yes
#write_enable =yes
#chroot_local_user =yes
#ascii_upload_enable allowed to upload using ASCII code
#ascii_download_enable allow the use of ASCII code to download
Save changes, press ESC, enter: WQ
5. Modify Shell Configuration
VI Edit/etc/shells, if there is no/usr/sbin/nologin or/sbin/nologin in the file (see the current system configuration) append it
6. Start vsftp Service and test login
To start the VSFTP service with a command:
#service vsftpd Start
Then use the account test to check whether the FTP can be landed. Directory is/ftp