To use ftp, you must install the FTP server. Generally, an FTP server is installed in Linux by default.
Run the following command:
Rpm-Qa | grep vsftpd
Check whether the FTP server is installed.
To access the FTP server, the client must start the FTP server:
Start ftp: Service vsftpd start
Two other commands:
Stop ftp: Service vsftpd stop restart ftp: Service vsftpd restart
After the client is started, it can be accessed through FTP.
The error "331 permission denied" may be reported during access using the root account. This is because the root user is disabled in/etc/vsftpd/ftpusers and/etc/vsftpd/user_list. In these two files, the root user can be normally accessed by shielding them.
When uploading a file, the error "553 cocould not create file" is displayed. The solution is as follows:
1. setsebool-P ftpd_disable_trans 1 2. Service vsftpd restart
Use man ftpd_selinux to view help.