Setting up an FTP server under Ubuntu

Source: Internet
Author: User

Backstage has been prompted Wordperss version and plugins have updated, look at the eyesore, decided to update them all. However, the update file requires the server to provide FTP services, Linode also did not provide to FTP, can only be installed on their own. I 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:

sudo apt-get install vsftpd

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:

Service VSFTPD Start | Stop | Restart

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":

Mkdir-p/home/testuseradd test-g ftp-d/home/test-s/sbin/nologin

Set Password:

passwd test

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

#禁止匿名访问anonymous_enable =no# Accept Local Users local_enable=yes# can upload write_enable=yes# enabled in Chroot_list_file users can only access the root directory chroot_ List_enable=yeschroot_list_file=/etc/vsftpd.chroot_list

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

chmod a-w/home/test

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

http://blog.csdn.net/njchenyi/article/details/8499555

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.