3 .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
4 .\" Generator: DocBook XSL Stylesheets v1.75.1 <http://docbook.sf.net/>
6 .\" Manual: File Formats and Conversions
7 .\" Source: File Formats and Conversions
10 .TH "LIMITS" "5" "07/24/2009" "File Formats and Conversions" "File Formats and Conversions"
11 .\" -----------------------------------------------------------------
12 .\" * set default formatting
13 .\" -----------------------------------------------------------------
14 .\" disable hyphenation
16 .\" disable justification (adjust text to left margin only)
18 .\" -----------------------------------------------------------------
19 .\" * MAIN CONTENT STARTS HERE *
20 .\" -----------------------------------------------------------------
22 limits \- resource limits definition
28 by default or LIMITS_FILE defined
29 config\&.h) describes the resource limits you wish to impose\&. It should be owned by root and readable by root account only\&.
31 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)\&.
33 Each line describes a limit for a user in the form:
36 \fIuser LIMITS_STRING\fR
40 is a string of a concatenated list of resource limits\&. Each limit consists of a letter identifier followed by a numerical limit\&.
42 The valid identifiers are:
52 A: max address space (KB)
63 C: max core file size (KB)
85 F: maximum filesize (KB)
96 M: max locked\-in\-memory address space (KB)
107 N: max number of open files
118 R: max resident set size (KB)
129 S: max stack size (KB)
140 T: max CPU time (MIN)
151 U: max number of processes
162 K: file creation mask, set by
174 L: max number of logins for this user
185 P: process priority, set by
186 \fBsetpriority\fR(2)\&.
197 I: max nice value (0\&.\&.39 which translates to 20\&.\&.\-19)
208 O: max real time priority
214 \fILIMITS_STRING\fR\&. For reading convenience, the following entries are equivalent:
230 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
234 The default entry is denoted by username "\fI*\fR"\&. If you have multiple
237 \fILIMITS_FILE\fR, then the last one will be used as the default entry\&.
239 To completely disable limits for a user, a single dash "\fI\-\fR" will do\&.
241 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 ;)
250 \fBsetpriority\fR(2),
251 \fBsetrlimit\fR(2)\&.