LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 10-22-2009, 03:55 PM   #1
Ken_1969
LQ Newbie
 
Registered: Oct 2009
Location: Surrey, UK
Distribution: Red Hat Enterprise 5
Posts: 7

Rep: Reputation: 0
etc/security/limits.conf - what does it do?


So, now I thought I have my first Linux system up and stable - I am intending to install my company's software on it, and part of the checklist for the linux install includes editing etc/security/limits.conf as follows:
* hard nofile 16384
* soft nofile 4096
* hard memlock 3000000
* soft memlock 3000000
* hard nproc 16000
* soft nproc 16000
* hard stack 512000
* soft stack 512000

However, when I make these changes and reboot I get a bunch of errors
"Nautilus can't be used now, due to an expected error from Bonobo when attempting to register the file manager view server."
"There was a problem registering the panel with the bonobo-activation server. The error code is:3 The panel will now exit."

The Linux desktop does not appear - I just get a completely black screen with a mouse pointer (the pointer does move). But I can't do anything else.

Eventually after rebooting a few times the menu at the top re-appears (although my wallpaper doesn't - still completely black and no icons).

Then I get a different error - "The panel encountered a problem while loading "OAFIID:GNOME_SystemTrayApplet - do you want to delete the applet from your configuration". ClockAppletm, SystemApplet, WorkSpaceSwitcher all throw up similar errors, and I get a "Bug Buddy" window.

At that point I can go to recent documents, edit the file and reboot, and then all is well again.

Obviously the simple answer is don't mess with these settings, but I'm just wondering what the implications are. The application I'm installing obviously suggests them for a reason.
 
Old 10-22-2009, 04:36 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,118
Blog Entries: 54

Rep: Reputation: 2787Reputation: 2787Reputation: 2787Reputation: 2787Reputation: 2787Reputation: 2787Reputation: 2787Reputation: 2787Reputation: 2787Reputation: 2787Reputation: 2787
Quote:
Originally Posted by Ken_1969 View Post
I am intending to install my company's software on it
It could be helpful to be complete about things. Like naming the software might help. Also if for instance the software is a daemon or any commandline application then I'd wonder why you would need a graphical UI in the first place. I mean if you wouldn't need a graphical UI in the first place then you could uninstall Xorg and get rid of the errors that (rather drastic) way. If the software requires a graphical UI then you'd have to find out which components are really required to run a minimal GUI and which limits these processes require (probably trial and error-wise).


Quote:
Originally Posted by Ken_1969 View Post
Obviously the simple answer is don't mess with these settings, but I'm just wondering what the implications are. The application I'm installing obviously suggests them for a reason.
Have a look at 'man pam_limits; man limits; man ulimit", then ask?
 
Old 10-22-2009, 04:45 PM   #3
DrLove73
Senior Member
 
Registered: Sep 2009
Location: Srbobran, Serbia
Distribution: CentOS 5.5 i386 & x86_64
Posts: 1,118
Blog Entries: 1

Rep: Reputation: 129Reputation: 129
Use <Ctrl>+<Alt>+n key combination where "n" is number from 1 to 12 (11 text terminals/consoles, plus GraphicUserInterface when n = 7 ). Log in as root and I suggest first do "yum install mc" and then use "mc" command (Midnight commander = Norton Commander = Total Commander) to navigate file system.

As for etc/security/limits.conf, I would try using one command at the time to see witch one gives you the problems, and maybe a combination of testing in one terminal (like n = 1) and trying GUI in another terminal with "startx" command.

Also to keep in mind, RHEL has SELinux security enforcer. You can try turning it off to see if that helps.
 
Old 10-22-2009, 04:50 PM   #4
DrLove73
Senior Member
 
Registered: Sep 2009
Location: Srbobran, Serbia
Distribution: CentOS 5.5 i386 & x86_64
Posts: 1,118
Blog Entries: 1

Rep: Reputation: 129Reputation: 129
"man pam_limits" and "man limits.conf" are the ones that work on my CentOS 5.3.

when you run "man ...." command, you can scroll up and down with arrow keys and PgUp, PgDown, Home and End. Type "Q" to exit manual application.
 
Old 10-22-2009, 05:19 PM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,118
Blog Entries: 54

Rep: Reputation: 2787Reputation: 2787Reputation: 2787Reputation: 2787Reputation: 2787Reputation: 2787Reputation: 2787Reputation: 2787Reputation: 2787Reputation: 2787Reputation: 2787
Quote:
Originally Posted by DrLove73 View Post
Also to keep in mind, RHEL has SELinux security enforcer. You can try turning it off to see if that helps.
Please do not do that unless you have specific errors in /var/log/audit/audit.log that can not be solved by applying custom rules.
 
Old 03-14-2010, 04:25 PM   #6
Sudeep Surya Ghosh
LQ Newbie
 
Registered: Dec 2008
Posts: 2

Rep: Reputation: 0
hard memlock
 
  


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 and /etc/security/limits.conf chakkerz Linux - General 2 01-23-2011 01:42 AM
How do I run jack well as normal user instead of root? NO /etc/security/limits.conf! el_b Linux - Software 4 09-24-2009 07:02 PM
/etc/security/limits.conf reverse Linux - Security 4 10-20-2007 03:10 PM
meaning of /etc/security/limits.conf commands marceluda Linux - Security 1 05-11-2006 11:01 AM
/etc/security/limits.conf documentation? crazyeddie740 Linux - Security 1 06-19-2004 03:02 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration