Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
02-09-2007, 02:38 PM
|
#1
|
LQ Newbie
Registered: Feb 2007
Posts: 2
Rep:
|
ulimit problem with nofiles
Hello!
My problem is the following:
i set nofiles in limits.conf:
* soft nofiles 10240
* hard nofiles 10240
but it didn't works, but it has effect on root user.
on the normal users it has no effect. but i don'T know why.
Can anybody help me?
|
|
|
02-09-2007, 03:04 PM
|
#2
|
Moderator
Registered: May 2001
Posts: 29,415
|
Hello and welcome to LQ, hope you like it here.
i set nofiles in limits.conf:
It's nofile, no "s".
* soft nofiles 10240
* hard nofiles 10240
Why this amount, what are you trying to achieve? And why try to force the same limit it on all users when limits.conf provides perfectly good examples confining it to just a group or a single user?
but it didn't works, but it has effect on root user.
on the normal users it has no effect.
How did you test the number of open file descriptors?
|
|
|
02-09-2007, 03:14 PM
|
#3
|
LQ Newbie
Registered: Feb 2007
Posts: 2
Original Poster
Rep:
|
Quote:
Originally Posted by unSpawn
Hello and welcome to LQ, hope you like it here.
i set nofiles in limits.conf:
It's nofile, no "s".
|
i misspeled here, but in the configuration i wrote nofile
Quote:
Originally Posted by unSpawn
but it didn't works, but it has effect on root user.
on the normal users it has no effect.
How did you test the number of open file descriptors?
|
ulimit -n give me the number of possible file descriptors
|
|
|
02-09-2007, 06:03 PM
|
#4
|
Moderator
Registered: May 2001
Posts: 29,415
|
Pick one regular user account.
Add the soft and hard nofile rule for that particular user and set the value to 20.
SSH in to the box as that user.
Run "ulimit -n" show. Run "ps" or a subshell. What does it return?
Now run "ulimit -n 3". Run "ps" or a subshell. What does it return?
|
|
|
All times are GMT -5. The time now is 02:37 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|