Tell me about your experience configuring FTP services in Linux

Source: Internet
Author: User

I sophomore small white one, from the beginning of the semester began to contact with Linux, at that time to see the school whenever we download resources are in an FTP server , feel particularly tall on, so they want to have their own FTP server, Put something in yourself and let someone else access it.

Then, from then on, there is a series of difficult journeys ....

Otherwise do not say experience, first straight poke technology bar, finally said experience, otherwise some people will not bother to read this elementary and silly article.

Small white, that requires hands-on teaching, but also to illustrations.

The first step:

Own Linux must be to have, if not, and you do not install, then you can look at my former blog, there are tutorials, there are Baidu Cloud link Oh!

I am installed in the virtual machine, rhel-server-6.7_64, the following is connected with putty after the

Step Two:

Install the FTP server using the command yum install vsftpd (if Yum is not installed, see my original blog)

Step Three:

After the installation, then we need to change some configuration files, of course, can not change, for what, I will continue to say!

In Linux, the root user cannot log on to the FTP server by default (I do not know why the root boss cannot log in) so we need to manually remove this annoying rule.

Install VSFTPD, there will be some files, we need to change two configuration files, I take one as an example.

With the command Vi/etc/vsftpd/ftpusers, after entering, you can see a lot of users, and then comment out the top root user, that is, add a # number in front

Also modify a configuration file to be vi/etc/vsftpd/user_list. It's the same note, and I can't.

Fourth Step:

Now, we have a new requirement, that is, anonymous user login My FTP is a directory, but some VIP (is logged in with the account password), I hope they log in to see some other resources, then we need to set up two access directory: Anonymous access to the directory , VIP access Directory

To modify the configuration file vi/etc/vsftpd/vsftpd.conf, Add a few code at the end of the file:

Explained very clearly, the only need to explain is anon_ftp and pass_ftp, this is just the two folders I created, respectively, placed a different resource for different people to visit!

Fifth Step:

It's done, note that the configuration file has been modified, you must restart the service, using the command,service vsftpd restart.

Then whether you are through the browser or through my computer, login effect is the same you can see

OK, in the future you can share some resources in the LAN, and then download very fast, or very convenient.

Last bb two sentences:

At the beginning to say that I configure the history of FTP, in fact, are black history, now think or is very funny, casually say two, the original has been looking at the tutorial Baidu, and then the tutorial on the various said to change the configuration file, and changed the place a lot, at that time on Linux itself is not particularly familiar with, So change to change to do not know oneself to go there, sometimes also change conflict. But the process has been successful several times, why are several times, because each configuration I did not summarize, and then the next time I forgot to continue Baidu, anyway, I have tried all kinds of methods, the pit died I, then since then, I have gone so many detours, I certainly do not want to go, this is the reason I write this blog, The great God may think so simple still write, but which big God is from the beginning of what will be, I hope that we have a lot of attention, this is my second blog (nominally, in fact, I wrote this first, and then also to update the name of the first article), the mood is very excited, haha!!

Tell me about your experience configuring FTP services in Linux

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.