[Sussex] FC4 - FTP timeout

Brendan Whelan b_whelan at mistral.co.uk
Mon Sep 25 12:48:42 UTC 2006


More information on intermittent FTP problem - in the message log there are
lots of "FTP session opened" and "FTP session closed" messages but some odd
errors e.g.

Sep 25 12:21:42 c100091 kernel: audit(1159183302.010:46): avc:  denied  {
write } for  pid=2464 comm="proftpd" name="661600" dev=dm-0 ino=6117997
scontext=system_u:system_r:ftpd_t:s0 tcontext=root:object_r:user_home_t:s0
tclass=dir
Sep 25 12:21:42 c100091 kernel: audit(1159183302.010:47): avc:  denied  {
add_name } for  pid=2464 comm="proftpd" name="661647a.jpg"
scontext=system_u:system_r:ftpd_t:s0 tcontext=root:object_r:user_home_t:s0
tclass=dir
Sep 25 12:21:42 c100091 kernel: audit(1159183302.010:48): avc:  denied  {
create } for  pid=2464 comm="proftpd" name="661647a.jpg"
scontext=system_u:system_r:ftpd_t:s0
tcontext=system_u:object_r:user_home_t:s0 tclass=file
Sep 25 12:21:42 c100091 kernel: audit(1159183302.058:49): avc:  denied  {
write } for  pid=2464 comm="proftpd" name="661647a.jpg" dev=dm-0 ino=523536
scontext=system_u:system_r:ftpd_t:s0
tcontext=system_u:object_r:user_home_t:s0 tclass=file

Sep 25 13:29:42 c100091 kernel: audit(1159187382.817:78): avc:  denied  {
create } for  pid=3120 comm="proftpd" name="661633d.jpg"
scontext=system_u:system_r:ftpd_t:s0
tcontext=system_u:object_r:user_home_t:s0 tclass=file
Sep 25 13:29:42 c100091 kernel: audit(1159187382.817:79): avc:  denied  {
write } for  pid=3120 comm="proftpd" name="661633d.jpg" dev=dm-0 ino=523560
scontext=system_u:system_r:ftpd_t:s0
tcontext=system_u:object_r:user_home_t:s0 tclass=file

This pattern matches what is reported i.e. sometimes the FTP works but other
times it doesn't.

I have looked in ProFTPD (for the first time) and see that max instances is
set to 20 - should I increase the value? Is there anything else I need to
change?

Brendan
----- Original Message -----
From: "Vic" <lug at beer.org.uk>
To: <sussex at mailman.lug.org.uk>
Sent: Monday, September 25, 2006 12:51 PM
Subject: Re: [Sussex] FC4 - FTP timeout


> > users are getting
> > intermittent problems when uploading picture files. Our file loading
> > process, written in PHP, hasn't changed
>
> Is this a file size problem?
>
> RH-based systems tend to have 2 bits that bite you here; firstly,
> /etc/php.ini has a upload_max_filesize setting. Secondly,
> /etc/httpd/conf.d/php.conf has a LimitRequestBody setting.
>
> Both of these need to be big enough to cater for everything you put
> through PHP.
>
> Vic.
>
>
> __
> Sussex mailing list
> Sussex at mailman.lug.org.uk
> E-mail Address: sussex at mailman.lug.org.uk
> Sussex LUG Website: http://www.sussex.lug.org.uk/
> https://mailman.lug.org.uk/mailman/listinfo/sussex
>
>






More information about the Sussex mailing list