Install Vsftpd in Ubuntu

Source: Internet
Author: User
Install Vsftpd in Ubuntu-Linux Enterprise Application-Linux server application information. For details, refer to the following section. In fact, the two articles on WIKI are enough to solve the problem, and the first article requires that the configuration has been successfully completed. The problem lies in that the second article cannot be correctly configured, it is estimated that a certain setting is not correct, so I gave up the database-based virtual user configuration solution and switched it to self-built users with permission restrictions. This is really another blow to my database field.

Pay attention to the following points.

1. After Vsftpd is installed, set/etc/vsftpd. after the conf file is backed up, the installation documentation must directly overwrite and modify the file. You must create a specific FTP directory, for example,/home/ftp. in addition, you can configure permissions for the directory to ensure read and write.

Add the user name of the user who needs to use FTP

/Etc/vsftpd. user_list

2. modify the configuration items in/etc/vsftpd. conf,

# Banner_file =/etc/vsftpd/banner

# If NO, the file specified by the chroot_list_file option is recorded (/etc/vsftpd by default. the user in the chroot_list) will be in the directory where the chroot is logged on and cannot leave. if YES, the logged user will not be chroot. select YES here.
Chroot_local_user = NO

To disable anonymous user access, modify the following

# Accepting Anonymous Users
Anonymous_enable = NO

# Do not ask for a password when an anonymous user logs in
No_anon_password = NO

3. To create a virtual user that can only access a specific user under FTP,

Sudo useradd-d/home/ftp/filename-s/bin/bash-m username

Then set the password,

Add the account of this type of user,

/Etc/vsftpd. chroot_list

4. After the configuration is complete, restart the service to make sure the settings take effect,

Sudo/etc/init. d/vsftpd restart
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.