FTP Installation section, the following steps:
can use Yum command to install directly FTP
#?yum?install?vsftpd
FTP Open and Close commands for the service:
Open: #? /bin/systemctl?start?vsftpd.service
Close: #? /bin/systemctl?stop Vsftpd.service
after the installation is successful, you can use it locally FTP software connection, the default account is the virtual machine's account number and password.
If you have any questions, please refer to: http://www.cnblogs.com/xulele/p/5246782.html
in the Linux added in FTP user, and set the appropriate permissions, proceed as follows:
1 , Environment:
FTP to be vsftp ? the restricted user name is Test . The restricted path is /home/test
2 , build users: in Root users under:
# useradd-d/home/test Test//Add user test and make test user's home directory as/home/test
# passwd Test//Set a password for test
3 , change the appropriate permission settings for the user:
# usermod-s/sbin/nologin Test//Limit user test cannot telnet, FTP only
# usermod-s/sbin/bash Test//user test returned to normal
# usermod-d/test Test//change user test's home directory to/test
4 , restrict users to access only /home/test , you cannot access other paths:
Modify ? #?/etc/vsftpd/vsftpd.conf? as follows:
chroot_list_enable=yes?// restricting access to your own directory
#? (default?follows)
Chroot_list_file=/etc/vsftpd/vsftpd.chroot_list
Edit ? vsftpd.chroot_list files, adding restricted users to each user name line
change the configuration file and don't forget to restart vsFTPd server.
#?/etc/init.d/vsftpd?restart
5 , if you need to allow the user to change the password, but there is no telnet permissions to log on to the system:
#?usermod?-s?/usr/bin/passwd?test?// User telnet will go directly to the change -over interface
Linux FTP Installation