Implement the linux ftp service

Source: Internet
Author: User
Implement the linux ftp service-Linux Enterprise Application-Linux server application information. The following is a detailed description. For the sake of security, I decided not to use anonymous accounts. Searching online for a long time. No suitable description is provided. You can only configure it yourself. I just got started with linux. The hands are still very busy. It took half a day to finally get better.

1. Check whether the ftp service is installed.

2. Start the service. ntsysv selects the vsftpd service.

3. edit/etc/vsftpd. conf.

Modify parameters:

Anonymous_enable = no

Connect_form_port_20 = yes

Pam_service_name = vsftpd

Listen = yes

Anon_upload_enable = yes

Anon_mkdir_write_enable = yes

Write_enable = yes

Local_enable = yes

Chroot_list_enable = yes

Chroot_list_file =/etc/vsftpd. chroot_list

4. Add a user

Useradd Username

Passwd User Name

5. Create a storage file path

Mkdir/var/ftp/

6. Change the file owner.

Chown? R user name: User Name/var/ftp/

7. Create a restricted list

Touch/etc/vsftpd. chroot_list

Vi/etc/vsftpd. chroot_list

Add the user name to it.

8. restart the ftp service/etc/init. d/vsftpd restart.

9. Try it. It should be okay. If not, leave a message.

Note: I use linux as4. Install all software packages.
Related Article

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.