Set up an FTP server in Linux 6.0. The FTP server configuration is as follows:
# Yum install-y vsftpd
# Chkconfig vsftpd on
# Service vsftpd start
# Vi/etc/vsftpd. conf
Modify anonymous_enable = Yes
Local_enable = Yes
Add row:
Anno_root =/var/FTP/pub/
Anno_other_write_enable = Yes
# Vi/etc/hosts. Deny
Add a row: vsftpd: All
# Vi/etc/hosts. Allow
Add a row: vsftpd: 192.168.0.0/255.255.255.0
# Chkconfig vsftpd on
Test: # ftp 192.168.0.102
Enter the user name and password
Log on to the FTP client. For example, enter the username Harry and password, and the system displays 500 oops cannot change home/Harry.
Use the following command to solve the problem because Se has disabled ftp:
Method 1:
# Getsebool ftp_home_dir
Show ftp_home_dir> off
# Setsebool ftp_home_dir = 1
Method 2:
# Getenforce display enforcing
# Setenforce 0 (disabled)
This article is from the "Tiger's technical home" blog!