|
| 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 | +# |
| 26 | +#<type> can have the two values: |
| 27 | +# - "soft" for enforcing the soft limits |
| 28 | +# - "hard" for enforcing hard limits |
| 29 | +# |
| 30 | +#<item> can be one of the following: |
| 31 | +# - core - limits the core file size (KB) |
| 32 | +# - data - max data size (KB) |
| 33 | +# - fsize - maximum filesize (KB) |
| 34 | +# - memlock - max locked-in-memory address space (KB) |
| 35 | +# - nofile - max number of open file descriptors |
| 36 | +# - rss - max resident set size (KB) |
| 37 | +# - stack - max stack size (KB) |
| 38 | +# - cpu - max CPU time (MIN) |
| 39 | +# - nproc - max number of processes |
| 40 | +# - as - address space limit (KB) |
| 41 | +# - maxlogins - max number of logins for this user |
| 42 | +# - maxsyslogins - max number of logins on the system |
| 43 | +# - priority - the priority to run user process with |
| 44 | +# - locks - max number of file locks the user can hold |
| 45 | +# - sigpending - max number of pending signals |
| 46 | +# - msgqueue - max memory used by POSIX message queues (bytes) |
| 47 | +# - nice - max nice priority allowed to raise to values: [-20, 19] |
| 48 | +# - rtprio - max realtime priority |
| 49 | +# |
| 50 | +#<domain> <type> <item> <value> |
| 51 | +# |
| 52 | + |
| 53 | +#* soft core 0 |
| 54 | +#* hard rss 10000 |
| 55 | +#@student hard nproc 20 |
| 56 | +#@faculty soft nproc 20 |
| 57 | +#@faculty hard nproc 50 |
| 58 | +#ftp hard nproc 0 |
| 59 | +#@student - maxlogins 4 |
| 60 | +* hard nofile 1000000 |
| 61 | +* soft nofile 1000000 |
| 62 | +root hard nofile 1000000 |
| 63 | +root soft nofile 1000000 |
| 64 | +# End of file |
0 commit comments