LIMITS(5)

NAMN
limits - definition av resursbegränsningar

BESKRIVNING

The limits file (/etc/limits by default or LIMITS_FILE defined config.h) describes the resource limits you wish to impose. It should be owned by root and readable by root account only.

By default no quota is imposed on 'root'. In fact, there is no way to impose limits via this procedure to root-equiv accounts (accounts with UID 0).

Varje rad beskriver en begränsning för användaren i formatet:

user LIMITS_STRING

The LIMITS_STRING is a string of a concatenated list of resource limits. Each limit consists of a letter identifier followed by a numerical limit.

De giltiga identifierarna är:

    • A: maximal adressrymd (KB)

    • C: max core file size (KB)

    • D: maximal datastorlek (KB)

    • F: maximal filstorlek (KB)

    • M: max locked-in-memory address space (KB)

    • N: maximalt antal öppna filer

    • R: max resident set size (KB)

    • S: maximal stackstorlek (KB)

    • T: maximal processortid (MIN)

    • U: maximalt antal processer

    • K: file creation mask, set by umask(2).

    • L: maximalt antal inloggningar för denna användare

    • P: processprioritet, inställd av setpriority(2).

    • I: max nice value (0..39 which translates to 20..-19)

    • O: max real time priority

For example, L2D2048N5 is a valid LIMITS_STRING. For reading convenience, the following entries are equivalent:

          username L2D2048N5
          username L2 D2048 N5

Be aware that after username the rest of the line is considered a limit string, thus comments are not allowed. A invalid limits string will be rejected (not considered) by the login program.

The default entry is denoted by username "*". If you have multiple default entries in your LIMITS_FILE, then the last one will be used as the default entry.

To completely disable limits for a user, a single dash "-" will do.

Also, please note that all limit settings are set PER LOGIN. They are not global, nor are they permanent. Perhaps global limits will come, but for now this will have to do ;)

FILER

/etc/limits

SE OCKSÅ

login(1), setpriority(2), setrlimit(2).