Linux FTP Installation

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.