There’s lots of recommendations floating around the net for this, but try the following first:
Make sure that the user and group permissions for the account and the home directory match. For example, if you are logging in as:
account:x:521:500::/some/directory:/sbin/nologin
then make sure that the home directory defined for “account” is at least readable and executable by user 521 and group 500.
I posted about this previously but this time I also ran into directory permissions. Ugh.
Hi! that error is generate for Selinux plz do the following actions:
[root@sun02 vsftpd]# getenforce
Enforcing
[root@sun02 vsftpd]# getsebool -a | grep ftp
allow_ftpd_anon_write –> off
allow_ftpd_full_access –> off
allow_ftpd_use_cifs –> off
allow_ftpd_use_nfs –> off
allow_tftp_anon_write –> off
ftp_home_dir –> on (change that to on in ur case this option is off)
ftpd_disable_trans –> off
ftpd_is_daemon –> on
httpd_enable_ftp_server –> off
tftpd_disable_trans –> off
[root@sun02 vsftpd]# setseboll -P ftp_home_dir on
This is all that u want to need.
Good Luck!
Jaime –
That totally worked for me, thank you so much. BTW, there is a typo in your last line, it should be:
> setsebool -P ftp_home_dir on
– Matt
GROSOOOOO!!!!!
It worked
Been looking for this for quite a while. Didn’t want to disable SELINUX
thaks so much
Thanks for the useful tips.It was very helpful
This worked well. Thank you.
It Worked. Thanks
that OK! thanks!
thanx alot for help
Thank you! worked like a charm
Awesome! Been beating my head trying to figure out why no ftp server would work
It is work
Many Thnaks
thanks it worked
it is working fine
thank you… 🙂
it worked but not secured……it leads to path traversal..
ftp user able to see all sys files like /etc /var /boot everything ..
“using Up to higher level directory”
Thanks, it worked for me
Thanks !
Great !!!!!!!!!!!!
Its working for me too……
Everyone,
Get the latest version of vsftpd direct from the author: https://security.appspot.com/vsftpd.html
I had lots of problems because the latest version of Linux Mint 14 was using an old version of vsftpd. I read the Software Manager page carefully for vsftpd and I noticed the author’s website link. I downloaded it and I am happy now!
Note:
On Jaime’s reply there is a typo:
“setseboll” must be “setsebool”
It works! Thanks!
Thanks for this solution.
I have Fedora 13, Directory listing started with command – setsebool -P ftp_home_dir on but it was not allowing to write files in /var/www/html so I have to set
setsebool -P allow_ftpd_full_access on
After this writing files permission started.
Is it right way to do this.
Four years later this link is still relevant. Saved my bacon.
And don't forget that the parent directory ALSO must have excute rights for the user connected to your FTP server. You can do it by applying chmod o+x /parentdir/ftp or by using groups if you care about everybody able to traverse this parent dir.
Still relevant!! Thanks!
Thanks that was great and fixed the problem!
Thank you very much !
This worked, understanding selinux is useful…
It worked. Thanks a million
… since almost a couple of years … it works again and again …
Thanks a lot !!
Yup, and still relevant for Fedora22.
After following the usual vsftpd setup my user with the default home directory worked fine, but another user I had setup with a different directory failed. All permissions to directory were fine because when I ssh in as them everything works.
vsftpd however gave me 500 OOPS: cannot change directory, but after setting the following all is now fine…
setsebool -P ftp_home_dir on
setsebool -P ftpd_full_access on
Great!
Thanks alot.
Thanks!!!!!! 🙂
Correct command from
setseboll -P ftp_home_dir on
to
setsebool -P ftp_home_dir on
Thanks for the tip!