Re: Setting the maximum number files a user can open
___cliff rayman___ <[email protected]> Thu, 01 May 2003 15:16:36 -0700
| Newsgroups | gmane.linux.redhat.release.seawolf |
|---|---|
| Organization | general wax, inc. |
| Message-ID | <[email protected]> |
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 [email protected]___http://www.genwax.com/