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

Re: Setting the maximum number files a user can open



Simone Crider wrote:

Hi!

I'm in hopes that someone can assist me w/ the following problem ... I
cannot change the ulimit -n value as a regular user.  I found the
following documentation ...


Setting the maximum number files a user can open By the Red Hat Linux Support Team Issue User wants to let the user open more files than permitted by default. Resolution Here\'s an example on how to give userx the ability to open 16000 file
concurrently


should really read:
Here's an example of how a system administrator (root), can give userx the ability....



Set /proc/sys/fs/file-max to the total number of files that can be openned by all users (eg. in /etc/sysctl.conf, fs.file-max = 20000, then sysctl -p).

this is the correct procedure, but it is for root users only!! this is by design. the purpose
of this system is to limit the maximum amount of files that a user can open so that one
user cannot cause a denial of service on the entire system.



edit /etc/security/limits.conf: userx hard nofile 16000

this file should be modifiable by "root only" as well.

--
___cliff rayman___cliff genwax com___http://www.genwax.com/







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