- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- ulimit: open files: cannot modify limit: Operation...
Operating System - Linux
1820390
Members
3986
Online
109623
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-06-2008 04:55 AM
тАО06-06-2008 04:55 AM
ulimit: open files: cannot modify limit: Operation not permitted
Hi,
I have one user USER1, and when I go into the system by ssh and do #ulimit -a (its has
open files (-n) 1024)
and if I do #ulimit -n 16384, its outs:
"ulimit: open files: cannot modify limit: Operation not permitted"
But if I enter by root and then su - USER1, its has (open files 16384, because I have one ulimit -n 16384 on the .bash_profile.
What is happenning?. How could I change this when I enter by ssh directly by the USER1??
Thanks a lot of,
Carmen.
I have one user USER1, and when I go into the system by ssh and do #ulimit -a (its has
open files (-n) 1024)
and if I do #ulimit -n 16384, its outs:
"ulimit: open files: cannot modify limit: Operation not permitted"
But if I enter by root and then su - USER1, its has (open files 16384, because I have one ulimit -n 16384 on the .bash_profile.
What is happenning?. How could I change this when I enter by ssh directly by the USER1??
Thanks a lot of,
Carmen.
Users are not too bad ;-)
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-06-2008 05:19 AM
тАО06-06-2008 05:19 AM
Re: ulimit: open files: cannot modify limit: Operation not permitted
Shalom,
You may have a kernel limit interfering with your ulimit command.
You could try unlimited instead of a number.
You may want to check maxupcr and other kernel parameters that control file open.
SEP
You may have a kernel limit interfering with your ulimit command.
You could try unlimited instead of a number.
You may want to check maxupcr and other kernel parameters that control file open.
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-06-2008 05:27 AM
тАО06-06-2008 05:27 AM
Re: ulimit: open files: cannot modify limit: Operation not permitted
For each ulimit variable, there are actually two limits: a soft limit and a hard limit.
A normal user can adjust the soft limit freely in the range of 0....
A normal user can adjust the hard limit too, but can only decrease it. You must be root to increase the hard limit from its default value.
To see the hard limit values, run "ulimit -H -a".
The limit values are inherited from the parent process to the child process: you could add the command to increase the hard limit to the sshd startup script, so that sshd and all sessions started through it will inherit the increased hard limit. After that, you should be able to increase the soft limit as a normal user.
Alternatively, some Linux distributions have PAM modules (pam_limit.so) that can adjust the limit values at login time, if configured to do so.
MK
A normal user can adjust the soft limit freely in the range of 0...
A normal user can adjust the hard limit too, but can only decrease it. You must be root to increase the hard limit from its default value.
To see the hard limit values, run "ulimit -H -a".
The limit values are inherited from the parent process to the child process: you could add the command to increase the hard limit to the sshd startup script, so that sshd and all sessions started through it will inherit the increased hard limit. After that, you should be able to increase the soft limit as a normal user.
Alternatively, some Linux distributions have PAM modules (pam_limit.so) that can adjust the limit values at login time, if configured to do so.
MK
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-06-2008 09:25 AM
тАО06-06-2008 09:25 AM
Re: ulimit: open files: cannot modify limit: Operation not permitted
Hi
Check the kernel parameter using command related to no. of open file max
#sysctl -a|grep fs.file-max
if the parameter is >= 16384 than you can set like this other wise you need to change the kernel parameter.
Check the kernel parameter using command related to no. of open file max
#sysctl -a|grep fs.file-max
if the parameter is >= 16384 than you can set like this other wise you need to change the kernel parameter.
a warrior never quits
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP