1. First check or download the FTP,VSFTPD installation package for download. If there is no download method for
Yum-y Install FTP (FTP is just a login client here in Linux) yum-y install VSFTPD (server main or VSFTPD)
2. Related Error Resolution
Connected to 192.168.10.100.
(VsFTPd 2.0.5)
User (192.168.10.100: (None)): Oracle
331 Specify the password.
Password:
Oops:cannot Change Directory:/home/oracle
Switch to server-side execution:
[[email protected] ~]# set Sebool Ftpd_disable_trans 1
Note: If you want the settings to be permanent, attach the-p parameter when you execute setsebool.
Then restart the FTP service:
[Email protected] ~]# service vsftpd restart
Shutting down VSFTPD: [OK]
starting vsftpd for vsftpd: [OK]
The client tries to log in again via ftp:
C:\Documents and Settings\administrator>ftp 192.168.10.100
Connected to 192.168.10.100.
(VsFTPd 2.0.5)
User (192.168.10.100: (None)): Oracle
331 Specify the password.
Password:
OK, problem solved:)
3.Oops:cannot Change directory:/home/ftp is the solution.
The reason for this is that his CentOS system has SELinux installed because the default is no FTP-enabled support, so access is blocked. View SELinux Settings # getsebool-a|grep FTP Ftpd_disable_trans--off or Ftp_home_dir-->off//Use the Setsebool command to turn on # Setsebool Ftpd_disable_trans 1 or # Setsebool Ftp_home_dir 1//See if the current state is on status # getsebool-a|grep FTP Ftpd_disable_trans-On or Ftp_home_dir-->on//setsebool use the-p parameter, you don't need to enter this command every time you boot # setsebool-p Ftpd_disable_trans 1 or # setsebool-p Ftp_home_dir 1 # service VSFTPD Restart about SELinux configuration such as shutdown, just warning, forcing and so on need to edit/etc/sysconfig/selinux default is mandatory
Linux FTP file related.