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