Redhat 5 Vsftp 550 failed to change directory solution

Source: Internet
Author: User
Tags ftp transfer

Redhat 5 Vsftp 550 failed to change directory problem solution results during the test we found ftp localhostftp> cd cdrom550 Failed to change directory. the reason why the directory cannot be switched to/pub/cdrom www.2cto.com is that SElinux's FTP Transfer review function prohibits directory switching solution: 1. /etc/sysconfig/selinux: disable it. Restart Linux to take effect. 2. if you do not restart linux, temporarily disable selinux. 1/usr/sbin/setenforce 0 3. disable SElinux's FTP Transfer review function www.2cto.com 1/usr/sbin/setsebool-P ftpd_disable_trans2service vsftpd restart using getsebool-a | grep ftp command to find Anonymous upload setsebool-P allow_ftpd_anon_write on to ftp value disable ftp Transfer review setsebool-P ftpd_disable_trans on 01sestatus02 [root @ xen ~] # Sestatus03SELinux status: enabled04SELinuxfs mount:/selinux05Current mode: permissive06Mode from config file: enforcing07Policy version: 2108 Policy from config file: targeted09 10 [root @ xen ~] # Getsebool-a | grep kernel --> off16ftp_home_dir --> off17ftpd_disable_trans --> off18ftpd_is_daemon --> kernel --> off21 [root @ xen ~] # Setsebool-P ftpd_disable_trans on22 [root @ xen ~] # Service vsftpd restart

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.