2007-10-07 17:17:01 +05:30
. \" ** You probably do not want to edit this file directly **
. \" It was generated using the DocBook XSL Stylesheets (version 1.69.1).
. \" Instead of manually editing it, you probably should edit the DocBook XML
. \" source for it and then use the DocBook XSL Stylesheets to regenerate it.
2007-10-07 17:17:22 +05:30
.TH "LIMITS" "5" "02/06/2006" "File Formats and Conversions" "File Formats and Conversions"
2007-10-07 17:17:01 +05:30
. \" disable hyphenation
.nh
. \" disable justification (adjust text to left margin only)
.ad l
.SH "NAME"
2007-10-07 17:14:44 +05:30
limits \- Resource limits definition
2007-10-07 17:17:01 +05:30
.SH "DESCRIPTION"
2007-10-07 17:14:44 +05:30
.PP
2007-10-07 17:17:01 +05:30
The
\fI limits\fR
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.
.PP
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).
2007-10-07 17:14:44 +05:30
.PP
Each line describes a limit for a user in the form:
.PP
2007-10-07 17:17:01 +05:30
\fI user LIMITS_STRING\fR
.PP
The
\fI LIMITS_STRING\fR
is a string of a concatenated list of resource limits. Each limit consists of a letter identifier followed by a numerical limit.
2007-10-07 17:14:44 +05:30
.PP
The valid identifiers are:
2007-10-07 17:17:11 +05:30
.TP 3
\(bu
A: max address space (KB)
.TP
\(bu
C: max core file size (KB)
.TP
\(bu
D: max data size (KB)
.TP
\(bu
F: maximum filesize (KB)
.TP
\(bu
M: max locked\- in\- memory address space (KB)
.TP
\(bu
N: max number of open files
.TP
\(bu
R: max resident set size (KB)
.TP
\(bu
S: max stack size (KB)
.TP
\(bu
T: max CPU time (MIN)
.TP
\(bu
U: max number of processes
.TP
\(bu
K: file creation mask, set by
\fB umask\fR (2).
.TP
\(bu
L: max number of logins for this user
.TP
\(bu
P: process priority, set by
2007-10-07 17:17:01 +05:30
\fB setpriority\fR (2).
.PP
For example,
\fI L2D2048N5\fR
is a valid
\fI LIMITS_STRING \fR . For reading convenience, the following entries are equivalent:
2007-10-07 17:17:22 +05:30
.sp
.nf
username L2D2048N5
username L2 D2048 N5
.fi
2007-10-07 17:14:44 +05:30
.PP
2007-10-07 17:17:01 +05:30
Be aware that after
\fI username\fR
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.
2007-10-07 17:14:44 +05:30
.PP
2007-10-07 17:17:01 +05:30
The default entry is denoted by username "\fI *\fR ". If you have multiple
\fI default\fR
entries in your
\fI LIMITS_FILE\fR , then the last one will be used as the default entry.
2007-10-07 17:14:44 +05:30
.PP
2007-10-07 17:17:01 +05:30
To completely disable limits for a user, a single dash "\fI \- \fR
"will do.
.PP
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 ;)
.SH "FILES"
.TP
2007-10-07 17:15:23 +05:30
\fI /etc/limits\fR
2007-10-07 17:17:01 +05:30
.SH "SEE ALSO"
.PP
\fB login\fR (1),
\fB setpriority\fR (2),
\fB setrlimit\fR (2).