LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 02-09-2007, 02:38 PM   #1
arpad85
LQ Newbie
 
Registered: Feb 2007
Posts: 2

Rep: Reputation: 0
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?
 
Old 02-09-2007, 03:04 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
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?
 
Old 02-09-2007, 03:14 PM   #3
arpad85
LQ Newbie
 
Registered: Feb 2007
Posts: 2

Original Poster
Rep: Reputation: 0
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
 
Old 02-09-2007, 06:03 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
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?
 
  


Reply


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ulimit Serena Linux - Software 6 12-17-2014 11:04 PM
What is ulimit and what it does? brazilian_user Linux - General 3 01-30-2007 01:39 PM
c-shell ulimit problem genmeng_chen Linux - Software 2 04-23-2006 08:12 PM
ulimit -t juanbobo Linux - Security 3 06-10-2005 09:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 02:37 AM.

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