Advertisement
ponce

Untitled

Dec 28th, 2017
550
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.47 KB | None | 0 0
  1. LIMITS(5) File Formats and Conversions LIMITS(5)
  2.  
  3. NAME
  4. limits - resource limits definition
  5.  
  6. DESCRIPTION
  7. The limits file (/etc/limits by default or LIMITS_FILE defined config.h) describes the resource limits you wish
  8. to impose. It should be owned by root and readable by root account only.
  9.  
  10. By default no quota is imposed on 'root'. In fact, there is no way to impose limits via this procedure to
  11. root-equiv accounts (accounts with UID 0).
  12.  
  13. Each line describes a limit for a user in the form:
  14.  
  15. user LIMITS_STRING
  16.  
  17. or in the form:
  18.  
  19. @group LIMITS_STRING
  20.  
  21. The LIMITS_STRING is a string of a concatenated list of resource limits. Each limit consists of a letter
  22. identifier followed by a numerical limit.
  23.  
  24. The valid identifiers are:
  25.  
  26. · A: max address space (KB)
  27.  
  28. · C: max core file size (KB)
  29.  
  30. · D: max data size (KB)
  31.  
  32. · F: maximum filesize (KB)
  33.  
  34. · K: file creation mask, set by umask(2).
  35.  
  36. · I: max nice value (0..39 which translates to 20..-19)
  37.  
  38. · L: max number of logins for this user
  39.  
  40. · M: max locked-in-memory address space (KB)
  41.  
  42. · N: max number of open files
  43.  
  44. · O: max real time priority
  45.  
  46. · P: process priority, set by setpriority(2).
  47.  
  48. · R: max resident set size (KB)
  49.  
  50. · S: max stack size (KB)
  51.  
  52. · L: max number of logins for this user
  53.  
  54. · M: max locked-in-memory address space (KB)
  55.  
  56. · N: max number of open files
  57.  
  58. · O: max real time priority
  59.  
  60. · P: process priority, set by setpriority(2).
  61.  
  62. · R: max resident set size (KB)
  63.  
  64. · S: max stack size (KB)
  65.  
  66. · T: max CPU time (MIN)
  67.  
  68. · U: max number of processes
  69.  
  70. For example, L2D2048N5 is a valid LIMITS_STRING. For reading convenience, the following entries are equivalent:
  71.  
  72. username L2D2048N5
  73. username L2 D2048 N5
  74.  
  75. Be aware that after username the rest of the line is considered a limit string, thus comments are not allowed. A
  76. invalid limits string will be rejected (not considered) by the login program.
  77.  
  78. The default entry is denoted by username "*". If you have multiple default entries in your LIMITS_FILE, then the
  79. last one will be used as the default entry.
  80.  
  81. The limits specified in the form "@group" apply to the members of the specified group.
  82.  
  83. If more than one line with limits for an user exist, only the first line for this user will be considered.
  84.  
  85. If no lines are specified for an user, the last @group line matching a group whose the user is a member of will
  86. be considered, or the last line with default limits if no groups contain the user.
  87.  
  88. To completely disable limits for a user, a single dash "-" will do.
  89.  
  90. To disable a limit for a user, a single dash "-" can be used instead of the numerical value for this limit.
  91.  
  92. Also, please note that all limit settings are set PER LOGIN. They are not global, nor are they permanent. Perhaps
  93. global limits will come, but for now this will have to do ;)
  94.  
  95. FILES
  96. /etc/limits
  97.  
  98. SEE ALSO
  99. login(1), setpriority(2), setrlimit(2).
  100.  
  101. shadow-utils 4.2.1 05/09/2014 LIMITS(5)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement