limits.conf 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. # /etc/security/limits.conf
  2. #
  3. #This file sets the resource limits for the users logged in via PAM.
  4. #It does not affect resource limits of the system services.
  5. #
  6. #Also note that configuration files in /etc/security/limits.d directory,
  7. #which are read in alphabetical order, override the settings in this
  8. #file in case the domain is the same or more specific.
  9. #That means, for example, that setting a limit for wildcard domain here
  10. #can be overridden with a wildcard setting in a config file in the
  11. #subdirectory, but a user specific setting here can be overridden only
  12. #with a user specific setting in the subdirectory.
  13. #
  14. #Each line describes a limit for a user in the form:
  15. #
  16. #<domain> <type> <item> <value>
  17. #
  18. #Where:
  19. #<domain> can be:
  20. # - a user name
  21. # - a group name, with @group syntax
  22. # - the wildcard *, for default entry
  23. # - the wildcard %, can be also used with %group syntax,
  24. # for maxlogin limit
  25. # - NOTE: group and wildcard limits are not applied to root.
  26. # To apply a limit to the root user, <domain> must be
  27. # the literal username root.
  28. #
  29. #<type> can have the two values:
  30. # - "soft" for enforcing the soft limits
  31. # - "hard" for enforcing hard limits
  32. #
  33. #<item> can be one of the following:
  34. # - core - limits the core file size (KB)
  35. # - data - max data size (KB)
  36. # - fsize - maximum filesize (KB)
  37. # - memlock - max locked-in-memory address space (KB)
  38. # - nofile - max number of open file descriptors
  39. # - rss - max resident set size (KB)
  40. # - stack - max stack size (KB)
  41. # - cpu - max CPU time (MIN)
  42. # - nproc - max number of processes
  43. # - as - address space limit (KB)
  44. # - maxlogins - max number of logins for this user
  45. # - maxsyslogins - max number of logins on the system
  46. # - priority - the priority to run user process with
  47. # - locks - max number of file locks the user can hold
  48. # - sigpending - max number of pending signals
  49. # - msgqueue - max memory used by POSIX message queues (bytes)
  50. # - nice - max nice priority allowed to raise to values: [-20, 19]
  51. # - rtprio - max realtime priority
  52. # - chroot - change root to directory (Debian-specific)
  53. #
  54. #<domain> <type> <item> <value>
  55. #
  56. #* soft core 0
  57. #root hard core 100000
  58. #* hard rss 10000
  59. #@student hard nproc 20
  60. #@faculty soft nproc 20
  61. #@faculty hard nproc 50
  62. #ftp hard nproc 0
  63. #ftp - chroot /ftp
  64. #@student - maxlogins 4
  65. # End of file