It often happens when we install vsftpd on newly installed system and configure it properly still sometimes we get one of the following error.
- vsftpd: Error 553 – Could not create file
- vsftpd: Error 530 – Login Incorrect (Even if username and password are correct)
So what is the problem and how to resolve.
The problem is often due to SElinux. To resolve this you will need to disable SElinux protection for FTP , from SElinux settings. For this you just have to run the following command:
setsebool -P ftp_home_dir 1
This commands makes selinux to allow ftp. Selinux is not disabled. It’s not recommended to disable Selinux.
To make it survive the reboots you need to create a file
and append line
This will resolve the vsftpd error caused due to SElinux.
If SElinux is disabled on your system. In this situation, the cause of the problem may be a permissions issue or a wrongly configured vsftpd.