Set up the FTP server in Ubuntu11.04

Source: Internet
Author: User
Some time ago, I started a lab server. After I installed Windows Server, I was unable to activate it for a long time. I simply installed Ubuntu and I also learned how to use it. The lab does not have high requirements on servers, As long as printers, FTP, and SVN can be used. I am basically a layman in the Ubuntu system. I don't know much about many things, but I have to explore it slowly. After a few days, I finally got these things done, though not perfect, but it can be used. Now I have forgotten something. Ubuntu version:

Some time ago, I started a lab Server. After installing Windows Server 2008, I was unable to activate it for a long time. I simply installed Ubuntu and learned it by the way. The lab does not have high requirements on servers, As long as printers, FTP, and SVN can be used. I am basically a layman in the Ubuntu system. I don't know much about many things, but I have to explore it slowly. After a few days, I finally got these things done, though not perfect, but it can be used. Now I have forgotten something.

Ubuntu: 11.04 Desktop

1. Install vsftpd

Sudo apt-get install vsftpd

In this case, the system automatically creates an ftp user and an ftp group, and creates a/srv/ftp folder as the HOME Directory of the ftp user. (If you want to put the FTP directory in/home/ftp, you can modify the ftp user's HOME directory location in the/etc/passwd file .)

2. Configure vsftpd

Open the/etc/vsftpd. conf file, change anonymous_enable = NO to anonymous_enable = YES, and allow anonymous access.

3. Now you can access FTP. Test it first:

1) create a new file a.txt under the/srv/ftpdirectory, and then sudo chown root: ftp a.txt

2) ftp localhost

If the logon fails, [Linux community www.Linuxidc.com] (solution: Add the following sentence to/etc/shells:/bin/false

Now you can log on normally.

4. If you need to set the FTP access permission, you can modify the/etc/vsftpd. conf file. The following statements are commonly used:

Write_enable = YES # Allow upload

Anon_upload_enable = YES # Allow Anonymous uploads

Anon_mkdir_write_enable = YES # Allow anonymous users to create folders

For more operations, see the comments in this file. The comments are clearly written.

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.