FTP server display 500 oops cannot change home/Harry Solution

Source: Internet
Author: User
Tags ftp client

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!

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.