Bug 35459 - unable to change limit of file descriptors available
Summary: unable to change limit of file descriptors available
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: pam
Version: 7.0
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Nalin Dahyabhai
QA Contact: Brock Organ
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-04-10 15:55 UTC by n.blackaby
Modified: 2007-04-18 16:32 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2001-04-10 16:00:56 UTC
Embargoed:


Attachments (Terms of Use)

Description n.blackaby 2001-04-10 15:55:02 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)


Non-root user unable to use ulimit to raise the  maximum number of open 
file descriptors.

Reproducible: Always
Steps to Reproduce:
1. The file /etc/rc.d/rc.local contains the lines at the end:
     echo 128000 > /proc/sys/fs/inode-max
     echo 64000 > /proc/sys/fs/file-max
2. As root: type ulimit -n 32000
3. As root, "ulimit -a" command shows last command was succcessful.
4. As normal user: type "ulimit -n 5000"
5. receive error message: "bash: ulimit: cannot modify limit: Operation 
not permitted"


	

Actual Results:  Non root user cannot increase number of open files they 
are allowed to have

Expected Results:  Want to increase number of open files for one of my non-
root users

Comment 1 Nalin Dahyabhai 2001-08-31 00:56:12 UTC
Unprivileged uses are not allowed to increase their limits.  (If they could,
there would be little point in setting them in the first place.)  This is a
policy enforced by the kernel.  See the setrlimit(2) man page for more information.


Note You need to log in before you can comment on or make changes to this bug.