Setting up an FTP server under Ubuntu

Source: Internet
Author: User

setting up an FTP server under UbuntuI installed the server system is Ubuntu 12.04 Lts,ftp software is of course choose the famous vsftpd (very secure FTP daemon), with the system comes with the FTP fortunately Ubuntu installed VSFTPD or is very simple, a command line:
During the execution of the command, the installer creates a user group named "FTP" locally, and the FTP service starts automatically when the command finishes.

You can use the "netstat-tl" command to check whether the FTP port has been opened, or directly in the browser type "ftp://your server IP" (the newly installed VSFTPD can be anonymous without direct access to the password), if you can directly connect to the FTP server, The installation of VSFTPD is accomplished.

Opening, stopping, and restarting the VSFTPD service is also simple:

The newly installed vsftpd can be accessed anonymously by default, and if you only want to give a specific user access to a directory, you need to modify the configuration of the vsftpd.

First, create a user that is specifically intended for access, such as "test":

Set Password:

Modify the VSFTPD configuration file "vi/etc/vsftpd.conf":

To add a user who is restricted by the access directory in/etc/vsftpd.chroot_list:

echo "Test" >>/etc/vsftpd.chroot_list

Some of the problems encountered during the installation process:

"530 Login Incorrect"

Add "/sbin/nologin" to the last line of/etc/shells

"OOPS:vsftpd:refusing to run with writable root inside Chroot ()"

If Chroot is enabled, the root directory should be set to not writable

OK, after restarting vsftpd you can use the newly created account above to access:)

Setting up an FTP server under Ubuntu

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.