Mohan Cheema's Online Diary

Site Just to Keep Track of My Day to Day Work.

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

| 0 comments

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.

Share

Author: Mohan Cheema

I am a Commerce Graduate currently I am working as Senior Support Analyst (Linux Administrator) with medium sized MNC Company. If time permits I do freelance work like setting up the servers as per the requirement, do performance tuning and so on.

Leave a Reply

Required fields are marked *.

*

* Copy this password:

* Type or paste password here:

2,912 Spam Comments Blocked so far by Spam Free Wordpress


CommentLuv badge

Notify me of followup comments via e-mail. You can also subscribe without commenting.