Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 02-04-2003, 07:07 AM   #1
LQ Newbie
Registered: Feb 2003
Posts: 2

Rep: Reputation: 0
Question File Descriptor Limit

Using RHAS 2.1.x…
Using ksh.

1) How do you enable any user to have the “sysops” privilege to increase ulimit settings?
2) or, How do you affect the default file handle (descriptor) limit?

As it stands, every session begins with the default limit of 1024, and only root can up the limit (ex: ulimit -n 8192). I’ve attempted to add users to the root group (only as a test) but that doesn’t allow them to up the limit.

I have tried everything (I think), except for a kernel rebuild (which shouldn't have to be performed for this!), to affect the default file handle maximum:
1) /etc/security/limits.conf
2) /etc/pam.d/login
3) /etc/profile
4) a users individual .profile
5) /proc/sys/fs/files-max

Any suggestions?

Many Thanks,

Forgot to add that in addition to using ksh, the userid's in question are not local accounts, but are obtained from yp services...however, I tested creating a local account and still the same behavior...

Last edited by rbd; 02-05-2003 at 07:42 AM.
Old 02-06-2003, 10:22 PM   #2
Senior Member
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 50
I *believe* the only option you have is to change it in the code and
recompile. root can raise the hard limit for root, but not for anyone
else. This is stupid (in my opinion), it should at least allow root to
change it for a given uid.
Old 02-07-2003, 08:36 AM   #3
LQ Newbie
Registered: Feb 2003
Posts: 2

Original Poster
Rep: Reputation: 0
Moses...thanks. I too believe that a recompile is the only way too. Agree with your opinion re: the ulimit call being limited as it is. What's funny is that RHAS is targeted for high availability / scalability / throughput environments but apparently someone believes that the processes supporting the environment are to be run as root? In the environments I routinely run in, I'll hit the file descriptor and other default limits very quickly. True, not too many kernels are tuned out-of-the-box for large scale / clustered environments, but the parameters I am dealing with at this point are very rudementary.

Anyway, enough of my diatribe...thanks again for the response...

Old 10-11-2004, 01:57 PM   #4
LQ Newbie
Registered: Aug 2004
Location: Colorado
Distribution: RedHat
Posts: 9

Rep: Reputation: 0
File Descriptor Limit

Do you happen to know what the max limit can be set to?
Do you know where i can look for this information? What man page is this stuff in? THANKS!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Get the absolute path of file using file descriptor. appas Programming 7 01-19-2012 11:47 AM
Low open file descriptor limit Suse 9.2 kryten SUSE / openSUSE 3 12-20-2004 12:20 AM
apt-file returns nothing; 'bad file descriptor' overbored Debian 3 10-03-2004 09:13 PM
Descriptor limit for a process akuate Linux - General 0 08-18-2004 11:23 AM
File descriptor lido Linux - Newbie 5 07-17-2003 11:58 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:38 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration