1 .\"$Id: limits.5,v 1.5 2001/01/25 10:43:50 kloczek Exp $
4 limits \- Resource limits definition
8 file (/etc/limits by default or LIMITS_FILE defined config.h)
9 describes the resource limits you wish to impose.
10 It should be owned by root and readable by root account only.
12 By default no quotas are imposed on 'root'. In fact, there is no way to impose
13 limits via this procedure to root-equiv accounts (accounts with UID 0).
15 Each line describes a limit for a user in the form:
19 The \fBLIMITS_STRING\fP is a string of a concatenated list of resource limits.
20 Each limit consists of a letter identifier followed by a numerical limit.
22 The valid identifiers are:
24 A: max address space (KB)
26 C: max core file size (KB)
30 F: maximum filesize (KB)
32 M: max locked-in-memory address space (KB)
34 N: max number of open files
36 R: max resident set size (KB)
38 S: max stack size (KB)
42 U: max number of processes
44 K: file creation mask, set by \fBumask\fR(2).
46 L: max number of logins for this user
48 P: process priority, set by \fBsetpriority\fR(2).
50 For example, \fIL2D2048N5\fP is a valid \fBLIMITS_STRING\fP. For reading convenience,
51 the following entries are equivalent:
57 Be aware that after \fIusername\fP the rest of the line is considered a limit
58 string, thus comments are not allowed. A invalid limits string will be
59 rejected (not considered) by the login program.
61 The default entry is denoted by username "\fB*\fP". If you have multiple \fIdefault\fP
62 entries in your \fBLIMITS_FILE\fP, then the last one will be used as the default
65 To completely disable limits for a user, a single dash "\fB-\fP" will do.
67 Also, please note that all limit settings are set PER LOGIN. They are
68 not global, nor are they permanent. Perhaps global limits will come, but
69 for now this will have to do ;)
77 Cristian Gafton (gafton@sorosis.ro)