tizen 2.0
[external/shadow.git] / man / pl / limits.5
1 '\" t
2 .\"     Title: limits
3 .\"    Author: [FIXME: author] [see http://docbook.sf.net/el/author]
4 .\" Generator: DocBook XSL Stylesheets v1.75.1 <http://docbook.sf.net/>
5 .\"      Date: 07/24/2009
6 .\"    Manual: File Formats and Conversions
7 .\"    Source: File Formats and Conversions
8 .\"  Language: Polish
9 .\"
10 .TH "LIMITS" "5" "07/24/2009" "File Formats and Conversions" "File Formats and Conversions"
11 .\" -----------------------------------------------------------------
12 .\" * set default formatting
13 .\" -----------------------------------------------------------------
14 .\" disable hyphenation
15 .nh
16 .\" disable justification (adjust text to left margin only)
17 .ad l
18 .\" -----------------------------------------------------------------
19 .\" * MAIN CONTENT STARTS HERE *
20 .\" -----------------------------------------------------------------
21 .SH "NAZWA"
22 limits \- resource limits definition
23 .SH "OPIS"
24 .PP
25 The
26 \fIlimits\fR
27 file (/etc/limits
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\&.
30 .PP
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)\&.
32 .PP
33 Each line describes a limit for a user in the form:
34 .PP
35
36 \fIuser LIMITS_STRING\fR
37 .PP
38 The
39 \fILIMITS_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\&.
41 .PP
42 The valid identifiers are:
43 .sp
44 .RS 4
45 .ie n \{\
46 \h'-04'\(bu\h'+03'\c
47 .\}
48 .el \{\
49 .sp -1
50 .IP \(bu 2.3
51 .\}
52 A: max address space (KB)
53 .RE
54 .sp
55 .RS 4
56 .ie n \{\
57 \h'-04'\(bu\h'+03'\c
58 .\}
59 .el \{\
60 .sp -1
61 .IP \(bu 2.3
62 .\}
63 C: max core file size (KB)
64 .RE
65 .sp
66 .RS 4
67 .ie n \{\
68 \h'-04'\(bu\h'+03'\c
69 .\}
70 .el \{\
71 .sp -1
72 .IP \(bu 2.3
73 .\}
74 D: max data size (KB)
75 .RE
76 .sp
77 .RS 4
78 .ie n \{\
79 \h'-04'\(bu\h'+03'\c
80 .\}
81 .el \{\
82 .sp -1
83 .IP \(bu 2.3
84 .\}
85 F: maximum filesize (KB)
86 .RE
87 .sp
88 .RS 4
89 .ie n \{\
90 \h'-04'\(bu\h'+03'\c
91 .\}
92 .el \{\
93 .sp -1
94 .IP \(bu 2.3
95 .\}
96 M: max locked\-in\-memory address space (KB)
97 .RE
98 .sp
99 .RS 4
100 .ie n \{\
101 \h'-04'\(bu\h'+03'\c
102 .\}
103 .el \{\
104 .sp -1
105 .IP \(bu 2.3
106 .\}
107 N: max number of open files
108 .RE
109 .sp
110 .RS 4
111 .ie n \{\
112 \h'-04'\(bu\h'+03'\c
113 .\}
114 .el \{\
115 .sp -1
116 .IP \(bu 2.3
117 .\}
118 R: max resident set size (KB)
119 .RE
120 .sp
121 .RS 4
122 .ie n \{\
123 \h'-04'\(bu\h'+03'\c
124 .\}
125 .el \{\
126 .sp -1
127 .IP \(bu 2.3
128 .\}
129 S: max stack size (KB)
130 .RE
131 .sp
132 .RS 4
133 .ie n \{\
134 \h'-04'\(bu\h'+03'\c
135 .\}
136 .el \{\
137 .sp -1
138 .IP \(bu 2.3
139 .\}
140 T: max CPU time (MIN)
141 .RE
142 .sp
143 .RS 4
144 .ie n \{\
145 \h'-04'\(bu\h'+03'\c
146 .\}
147 .el \{\
148 .sp -1
149 .IP \(bu 2.3
150 .\}
151 U: max number of processes
152 .RE
153 .sp
154 .RS 4
155 .ie n \{\
156 \h'-04'\(bu\h'+03'\c
157 .\}
158 .el \{\
159 .sp -1
160 .IP \(bu 2.3
161 .\}
162 K: file creation mask, set by
163 \fBumask\fR(2)\&.
164 .RE
165 .sp
166 .RS 4
167 .ie n \{\
168 \h'-04'\(bu\h'+03'\c
169 .\}
170 .el \{\
171 .sp -1
172 .IP \(bu 2.3
173 .\}
174 L: max number of logins for this user
175 .RE
176 .sp
177 .RS 4
178 .ie n \{\
179 \h'-04'\(bu\h'+03'\c
180 .\}
181 .el \{\
182 .sp -1
183 .IP \(bu 2.3
184 .\}
185 P: process priority, set by
186 \fBsetpriority\fR(2)\&.
187 .RE
188 .sp
189 .RS 4
190 .ie n \{\
191 \h'-04'\(bu\h'+03'\c
192 .\}
193 .el \{\
194 .sp -1
195 .IP \(bu 2.3
196 .\}
197 I: max nice value (0\&.\&.39 which translates to 20\&.\&.\-19)
198 .RE
199 .sp
200 .RS 4
201 .ie n \{\
202 \h'-04'\(bu\h'+03'\c
203 .\}
204 .el \{\
205 .sp -1
206 .IP \(bu 2.3
207 .\}
208 O: max real time priority
209 .RE
210 .PP
211 For example,
212 \fIL2D2048N5\fR
213 is a valid
214 \fILIMITS_STRING\fR\&. For reading convenience, the following entries are equivalent:
215 .sp
216 .if n \{\
217 .RS 4
218 .\}
219 .nf
220       username L2D2048N5
221       username L2 D2048 N5
222     
223 .fi
224 .if n \{\
225 .RE
226 .\}
227 .PP
228 Be aware that after
229 \fIusername\fR
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
231 \fBlogin\fR
232 program\&.
233 .PP
234 The default entry is denoted by username "\fI*\fR"\&. If you have multiple
235 \fIdefault\fR
236 entries in your
237 \fILIMITS_FILE\fR, then the last one will be used as the default entry\&.
238 .PP
239 To completely disable limits for a user, a single dash "\fI\-\fR" will do\&.
240 .PP
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 ;)
242 .SH "PLIKI"
243 .PP
244 /etc/limits
245 .RS 4
246 .RE
247 .SH "ZOBACZ TAKÅ»E"
248 .PP
249 \fBlogin\fR(1),
250 \fBsetpriority\fR(2),
251 \fBsetrlimit\fR(2)\&.