[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-security] too many files open?



Cobalt as standard only allows 256 open files per user.
This is sometimes a problem for the root user, especially if analog is
running.

You can do something like this:

echo "if [ "$UID" = "0" ] ; then ulimit -n 2048 ; ulimit -u 1024 ; fi" >
/etc/profile.d/boost.sh
chmod a+x /etc/profile.d/boost.sh

When you reboot, most sessions should now have the higher values.

ons, 2002-04-03 kl. 17:25 skrev Matthew Nuzum:
> I've been getting a couple of interesting entries in my logwatch for the
> last couple of days.  They all look something like this:
> 
> Apr  2 15:45:03 www proftpd[16706]: Unable to open password file
> /etc/passwd for reading: Too many open files in system
> 
> I also get these entries here: (I'm not as worried about these, I think
> they're low mem problems)
> Apr  1 04:43:56 www kernel: VM: do_try_to_free_pages failed for
> lcdstop... 
> Apr  2 04:47:27 www kernel: VM: do_try_to_free_pages failed for
> in.qpopper... 
> Apr  2 04:47:27 www kernel: VM: do_try_to_free_pages failed for
> in.qpopper... 
> Apr  2 04:47:53 www kernel: VM: do_try_to_free_pages failed for
> analog...
> 
> The first time I noticed this problem was the other day, right after I
> accidentally caused an infinite loop with PHP and Apache.  It pretty
> much disabled the server, but fortunately I was already logged in
> through SSH so I just had to restart apache.  When that happened,
> nothing on the server was working.
> 
> Now, I'm getting these entries only for ProFTP.
> 
> the first one is at
> Apr  2 15:45:01
> And  the last one is at
> Apr  2 21:56:59  
> 
> I'm getting ready to move off of this server, but I still need it for a
> couple more weeks.  I checked for rootkits and didn't find anything.
> 
> Any suggestions or comments?  On a scale of 1-10, where 1 is "no
> problem-o," and 10 is "It's gonna blow!", where am I?
> 
> Thanks in advance,
> Matt Nuzum
> 
> _______________________________________________
> cobalt-security mailing list
> cobalt-security@xxxxxxxxxxxxxxx
> http://list.cobalt.com/mailman/listinfo/cobalt-security
> 
-- 

Martin Moeller
Liga LinDist ApS.
Faelledvej 16D
DK-2200  Copenhagen N
Tel: +45 35 36 95 05
Fax: +45 35 36 92 05

http://www.liga.dk
mailto: martin@xxxxxxx