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.