Post navigation

vsftpd: Error 553 – Could not create file OR login error 530

It often happens when we install vsftpd on newly installed system and configure it properly still sometimes we get one of the following error.

  1. vsftpd:  Error 553 – Could not create file
  2. 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

/etc/selinux/targeted/booleans.local

and append line

ftpd_disable_trans=1

This will resolve the vsftpd error caused due to SElinux.

Note

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.

This entry was posted in Tips and tagged , , , , by Mohan Cheema. Bookmark the permalink.

One thought on “vsftpd: Error 553 – Could not create file OR login error 530

  1. senthil on August 16, 2012 at 06:25 said:

    H i guys, i have faced the same issue, i have turnned off the firewall on the destination andtried, after that it works fine. Below are the steps to turn-off the firewall using CLI,

    1. setup
    2. Firewall Configuration
    3. Disabled

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

CommentLuv badgeShow more posts

(Spamcheck Enabled)