Re: Setting the maximum number files a user can open
"Simone Crider" <[email protected]> Fri, 02 May 2003 09:09:00 -0500
| Newsgroups | gmane.linux.redhat.release.seawolf |
|---|---|
| Organization | National Coastal Data Development Center |
| Message-ID | <[email protected]> |
Thank you for the information, but that part I understand & also why "only root" should have control over granting access for max number of open files. However, the problem is not in making the mods (or maybe it is) to the system files as root, but that the "regular user" cannot change the limit, (execute the "ulimit -n 16000" cmd), once the system administrator granted the user the right. > > I log out & then login as a regular user & get the following error ... > > $ ulimit -n 2048 > bash: ulimit: cannot modify limit: Operation not permitted > > Appears that because I am a non-root user, that I cannot perform this > command. I thought that by changing the hard limit that a regular user > would then be able to modify this value, at least to the hard limit? > According to the documentation, the regular user should be able to do this, correct? Thanks! ___cliff rayman___ wrote: > > 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/ > > _______________________________________________ > Seawolf-list mailing list > [email protected] > https://listman.redhat.com/mailman/listinfo/seawolf-list -- Simone L. Crider Systems Administrator Anteon/NOAA National Coastal Data Development Center Stennis Space Center, MS 39529 Phone: (228) 688-2460 Fax: (228) 688-2968 email: [email protected]