LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   can't get vsftpd to work properly (https://www.linuxquestions.org/questions/linux-server-73/cant-get-vsftpd-to-work-properly-509793/)

alfredofernandeza 12-12-2006 02:41 PM

can't get vsftpd to work properly
 
I have vsftpd running in a Fedora Core 5 system. I can't get users to login to /home/javier because I get the following error message:

500 OOPS: cannot change directory:/home/javier

The group owner for /home/javier is javier and users belong to this group. The file permissions for /home/javier are: drwxrwx---

Next I show my full vsftpd.conf file:

anonymous_enable=NO
local_enable=YES
write_enable=NO
local_umask=022
chroot_local_user=YES
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_std_format=YES
pam_service_name=vsftpd
listen=YES
tcp_wrappers=YES

Any ideas?

Thank you,
Alfredo Fernández

i_grok 12-12-2006 04:35 PM

Have you tried to make /home/javier have more permissions just to see if it works?

Use:
Code:

chmod 775 /home/javier
If this works then you know that vsftp is using a user that doesn't have permissions. If it doesn't work, you're having some problem other than user permissions.

alfredofernandeza 12-12-2006 11:27 PM

I've tested what you said and file permissions is not the problem. Actually, I've done some more research on the web and found the problem. I had to modify one of SELinux policies with the following command. I hope this solution helps others.

setsebool -P ftp_home_dir=1

Thank you,

Alfredo


All times are GMT -5. The time now is 01:53 PM.