Vsftp service configuration in the ora virtual machine, fedoravsftp

Source: Internet
Author: User

Vsftp service configuration in the ora virtual machine, fedoravsftp

I have been studying unix recently, but I always encounter various errors when I use ftp to connect to a virtual machine. I have checked a lot of information and tried many methods, but there are still some problems. In the end, I was ill for a long time, here, I would like to provide a better solution for other users.

Fedora vsftp has updated many versions. I personally think that Fedora vsftp is a good File System in the Fedora series and I would like to recommend it to you here. Today, the technology is constantly updated and all kinds of files used have been eliminated. I think there is still a good one, such as Fedora vsftp, which deserves your use.

1. Install Fedora vsftp

# Yum install vsftpd all the way yes, and finally prompts that the installation is successful.

2. Configure Fedora vsftpd. conf.

# Vi/etc/vsftpd. conf set the main settings in the vsftpd. conf file as follows:

Anonymous_enable = YES # Allow Anonymous Access

Local_enable = YES # allow local users to access (users in/etc/passwd)

Write_enable = YES # Allow write permission, including modification and Deletion

Anon_upload_enable = YES # Allow anonymous users to upload

Anon_mkdir_write_enable = YES # Allow anonymous users to create directories

Ascii_upload_enable = YES # allows ascii upload

Ascii_download_enable = YES # allows ascii download

3. Start Fedora vsftp

# Service vsftpd start

4. Enable Fedora vsftpd to start automatically

# Chkconfig -- level 2345 vsftpd on

# Chkconfig -- list vsftpd

5. allows the root user to upload data over ftp

Fedora vsftp has two files in the/etc/vsftpd/directory: ftpusers and user_list. The recorded files cannot be accessed through ftp. Delete the root record, and disable selinux under # setsebool-P ftpd_disable_trans 1 fedora to set vi/etc/selinux/config SELINUX = disabled.

6. Restart Fedora vsftpd.

7. Disable Firewall
Before fedora18
# Service vsftpd restart

View the Firewall Status:
/Etc/init. d/iptables status

Temporarily disable the Firewall:
/Etc/init. d/iptables stop

Disable firewall from starting when the system starts
/Sbin/chkconfig -- level 2345 iptables off

Restart iptables:
/Etc/init. d/iptables restart


More than Fedora 18 uses a device named firewalld. In addition to the above operations, you also need:

Systemctl stop firewalld. service if necessary

Systemctl disable firewalld. service


8. Restart the VM.

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.