vsftp - selinux?

Miroslav Grepl mgrepl at redhat.com
Thu Aug 20 11:52:21 UTC 2009


On 08/20/2009 01:29 PM, ann kok wrote:
> Hi
>
> I have problem using vsftp. I can login ftp but can't upload file
> in the message log, there is
>
> Aug 20 21:03:21 ftp kernel: type=1400 audit(1250773401.299:10): avc:  denied  { read } for  pid=31408 comm="vsftpd" name="pierre" dev=sda2 ino=933889 scontext=unconfined_u:system_r:ftpd_t:s0 tcontext=system_u:object_r:user_home_dir_t:s0 tclass=dir
>
> I have to set selinux to disable
>
> why? how can I fix it?
>
> Thank you
>
>
>        __________________________________________________________________
> Ask a question on any topic and get answers from real people. Go to Yahoo! Answers and share what you know at http://ca.answers.yahoo.com
>
>    

There is 'ftp_home_dir' boolean allowing to ftp server to read or write files in your home directory

# setsebool -P ftp_home_dir on

Also you can check 'ftpd_selinux' manpage to help you.

Regards,
Miroslav




More information about the fedora-list mailing list