[39] | 1 | # /etc/security/limits.conf |
---|
| 2 | # |
---|
| 3 | #Each line describes a limit for a user in the form: |
---|
| 4 | # |
---|
| 5 | #<domain> <type> <item> <value> |
---|
| 6 | # |
---|
| 7 | #Where: |
---|
| 8 | #<domain> can be: |
---|
| 9 | # - an user name |
---|
| 10 | # - a group name, with @group syntax |
---|
| 11 | # - the wildcard *, for default entry |
---|
| 12 | # - the wildcard %, can be also used with %group syntax, |
---|
| 13 | # for maxlogin limit |
---|
| 14 | # |
---|
| 15 | #<type> can have the two values: |
---|
| 16 | # - "soft" for enforcing the soft limits |
---|
| 17 | # - "hard" for enforcing hard limits |
---|
| 18 | # |
---|
| 19 | #<item> can be one of the following: |
---|
| 20 | # - core - limits the core file size (KB) |
---|
| 21 | # - data - max data size (KB) |
---|
| 22 | # - fsize - maximum filesize (KB) |
---|
| 23 | # - memlock - max locked-in-memory address space (KB) |
---|
| 24 | # - nofile - max number of open files |
---|
| 25 | # - rss - max resident set size (KB) |
---|
| 26 | # - stack - max stack size (KB) |
---|
| 27 | # - cpu - max CPU time (MIN) |
---|
| 28 | # - nproc - max number of processes |
---|
[1259] | 29 | # - as - address space limit (KB) |
---|
[39] | 30 | # - maxlogins - max number of logins for this user |
---|
| 31 | # - maxsyslogins - max number of logins on the system |
---|
| 32 | # - priority - the priority to run user process with |
---|
| 33 | # - locks - max number of file locks the user can hold |
---|
| 34 | # - sigpending - max number of pending signals |
---|
| 35 | # - msgqueue - max memory used by POSIX message queues (bytes) |
---|
[1259] | 36 | # - nice - max nice priority allowed to raise to values: [-20, 19] |
---|
[39] | 37 | # - rtprio - max realtime priority |
---|
| 38 | # |
---|
| 39 | #<domain> <type> <item> <value> |
---|
| 40 | # |
---|
| 41 | |
---|
[1072] | 42 | # No limits for root |
---|
[1259] | 43 | root - |
---|
| 44 | scripts-build - |
---|
[1072] | 45 | |
---|
| 46 | # For everyone else, |
---|
[1259] | 47 | * soft core 0 |
---|
| 48 | * - rss 524268 |
---|
| 49 | * - data 1048576 |
---|
[1772] | 50 | * - as 1572864 |
---|
[1259] | 51 | |
---|
| 52 | #* soft core 0 |
---|
[39] | 53 | #* hard rss 10000 |
---|
| 54 | #@student hard nproc 20 |
---|
| 55 | #@faculty soft nproc 20 |
---|
| 56 | #@faculty hard nproc 50 |
---|
| 57 | #ftp hard nproc 0 |
---|
| 58 | #@student - maxlogins 4 |
---|
| 59 | |
---|
| 60 | # End of file |
---|