OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / shadow / original / man5 / limits.5
1 .\"$Id: limits.5,v 1.5 2001/01/25 10:43:50 kloczek Exp $
2 .TH LIMITS 5
3 .SH NAME
4 limits \- Resource limits definition
5 .SH DESCRIPTION
6 The
7 .I limits
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.
11 .PP
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).
14 .PP
15 Each line describes a limit for a user in the form:
16 .sp
17 .I      user LIMITS_STRING
18 .PP
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.
21 .PP
22 The valid identifiers are:
23 .sp
24 A: max address space (KB)
25 .br
26 C: max core file size (KB)
27 .br
28 D: max data size (KB)
29 .br
30 F: maximum filesize (KB)
31 .br
32 M: max locked-in-memory address space (KB)
33 .br
34 N: max number of open files
35 .br
36 R: max resident set size (KB)
37 .br
38 S: max stack size (KB)
39 .br
40 T: max CPU time (MIN)
41 .br
42 U: max number of processes
43 .br
44 K: file creation mask, set by \fBumask\fR(2).
45 .br
46 L: max number of logins for this user
47 .br
48 P: process priority, set by \fBsetpriority\fR(2).
49 .PP
50 For example, \fIL2D2048N5\fP is a valid \fBLIMITS_STRING\fP. For reading convenience,
51 the following entries are equivalent:
52 .sp
53 username L2D2048N5
54 .br
55 username L2 D2048 N5
56 .PP
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.
60 .PP
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
63 entry.
64 .PP
65 To completely disable limits for a user, a single dash "\fB-\fP" will do.
66 .PP
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 ;)
70 .SH FILES
71 /etc/limits
72 .SH SEE ALSO
73 .BR login (1),
74 .BR setpriority (2),
75 .BR setrlimit (2)
76 .SH AUTHOR
77 Cristian Gafton (gafton@sorosis.ro)