LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-13-2017, 07:38 PM   #1
fanoflq
Member
 
Registered: Nov 2015
Posts: 397

Rep: Reputation: Disabled
Linking ulimit to /etc/security/limits.conf


I found discussion of ulimits in man bash.
But there is no mention of /etc/security/limits.conf.
So it is impossible for me to know it is related to ulimit.
Thank you Internet!

I like to figure out a way to use local host resources to
find out ulimit's companion config file,
/etc/security/limits.conf.

Where is limits.conf mentioned in man or any other docs?


Addendum:

Quote:
$ man -k limits.conf
limits.conf (5) - configuration file for the pam_limits module

From man limits.conf:
... ...
DESCRIPTION
The pam_limits.so module applies ulimit limits, nice priority and number of simultaneous login sessions limit to user login sessions. This description of the configuration file syntax applies to the /etc/security/limits.conf file and *.conf files in the /etc/security/limits.d directory.

Last edited by fanoflq; 03-13-2017 at 07:45 PM.
 
Old 03-13-2017, 08:01 PM   #2
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 9,238
Blog Entries: 4

Rep: Reputation: 3263Reputation: 3263Reputation: 3263Reputation: 3263Reputation: 3263Reputation: 3263Reputation: 3263Reputation: 3263Reputation: 3263Reputation: 3263Reputation: 3263
Well, of course there is man ulimit which, as you know, covers "the basic command."

And, believe it or not, man limits.conf also works!

- - -

Now, let me explain.

Have a look at the output of this command: man man. (Yes: "the man-page about man itself.")

In the DESCRIPTION, you will see that man-pages are divided into multiple sections:
Code:
       1   Executable programs or shell commands
       2   System calls (functions provided by the kernel)
       3   Library calls (functions within program libraries)
       4   Special files (usually found in /dev)
       5   File formats and conventions eg /etc/passwd
       6   Games
       7   Miscellaneous (including macro packages and conventions), e.g. man(7), groff(7)
       8   System administration commands (usually only for root)
       9   Kernel routines [Non standard]
And, if you surf to a page such as limits.conf(5) - Linux man page ... "kindly notice that all-important business about '(5)'!"

This is a "section number."
  • If you omit the section-number, you'll get the manual-page for the first ... but only the first ... page where the requested term (such as "limits.conf") appears.
  • If you specify a section-number but get it wrong ... man 2 limits.conf ... you will fairly-rudely be told that there is "No manual entry for limits.conf in section 2"
  • "However, all is not lost!" The apropos command will tell you every man-page section where any particular keyword appears.

Ahem™ ...
  • Disclaimer: "this stuff made perfect sense in the late 1970's ..."
  • Full-disclosure disclaimer #2: "Bah! These kids today!" ... (koff koff™) ...
 
Old 03-13-2017, 08:33 PM   #3
fanoflq
Member
 
Registered: Nov 2015
Posts: 397

Original Poster
Rep: Reputation: Disabled
I incorrectly marked this solved
based on addendum in OP.

It is still difficult to link ulimit to
limits.conf since:
Quote:
$ man -k ulimit
fattach (2) - unimplemented system calls
ulimit (3) - get and set user limits
None of which have any reference to /etc/security/limits.conf!

Last edited by fanoflq; 03-13-2017 at 08:34 PM.
 
  


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
soft and hard limits for nproc value in /etc/security/limits.conf file kraljic Linux - General 3 07-13-2015 08:13 AM
Setting limits in /etc/security/limits.conf vaibhav.vsk Linux - Security 1 09-20-2012 08:22 AM
ulimit and /etc/security/limits.conf chakkerz Linux - General 2 01-23-2011 01:42 AM
etc/security/limits.conf - what does it do? Ken_1969 Red Hat 5 03-14-2010 04:25 PM
/etc/security/limits.conf reverse Linux - Security 4 10-20-2007 03:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:41 PM.

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