'\" t .\" Title: limits .\" Author: Luca Berra .\" Generator: DocBook XSL Stylesheets vsnapshot .\" Date: 08.11.2022 .\" Manual: File Formats and Configuration Files .\" Source: shadow-utils 4.13 .\" Language: German .\" .TH "LIMITS" "5" "08.11.2022" "shadow\-utils 4\&.13" "File Formats and Configuration" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" limits \- Festlegung von Resourcenbeschr\(:ankungen .SH "BESCHREIBUNG" .PP The \fIlimits\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 Standardm\(:a\(ssig bestehen f\(:ur Root keine Einschr\(:ankungen\&. Tats\(:achlich gibt es keine M\(:oglichkeit, mit diesem Verfahren Root\-Konten (Konten mit der UID 0) Beschr\(:ankungen aufzuerlegen\&. .PP Jede Zeile beschreibt eine Beschr\(:ankung f\(:ur einen Benutzer in der Form: .PP \fIBenutzer BESCHR\(:ANKUNGSZEICHENKETTE\fR .PP oder in der Form: .PP \fI@Gruppe BESCHR\(:ANKUNGSZEICHENKETTE\fR .PP The \fILIMITS_STRING\fR is a string of a concatenated list of resource limits\&. Each limit consists of a letter identifier followed by a numerical limit\&. .PP G\(:ultige Kennungen sind: .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} A: maximaler Adressraum (KB) .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} C: maximale Gr\(:o\(sse der Speicherabbild\-Datei .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} D: maximale Datengr\(:o\(sse (KB) .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} F: maximum file size (KB) .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} K: file creation mask, set by \fBumask\fR(2)\&. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} I: Maximaler Wert von nice (0 bis 39, was in 20 bis \-19 \(:ubersetzt wird) .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} L: maximale Anzahl von Logins f\(:ur diesen Benutzer .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} M: maximaler gesperrter Adressbereich im Speicher (KB) .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} N: maximale Anzahl offener Dateien .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} O: Maximale Echtzeit\-Priorit\(:at .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} P: process priority, set by \fBsetpriority\fR(2)\&. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} R: maximale Resident Set Size (KB) .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} S: maximale Gr\(:o\(sse des Stapelverarbeitungsspeichers (KB) .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} T: maximale CPU\-Zeit (Min) .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} U: maximale Anzahl von Prozessen .RE .PP For example, \fIL2D2048N5\fR is a valid \fILIMITS_STRING\fR\&. For reading convenience, the following entries are equivalent: .sp .if n \{\ .RS 4 .\} .nf username L2D2048N5 username L2 D2048 N5 .fi .if n \{\ .RE .\} .PP Be aware that after \fIusername\fR the rest of the line is considered a limit string, thus comments are not allowed\&. An invalid limits string will be rejected (not considered) by the \fBlogin\fR program\&. .PP The default entry is denoted by username "\fI*\fR"\&. If you have multiple \fIdefault\fR entries in your \fILIMITS_FILE\fR, then the last one will be used as the default entry\&. .PP The limits specified in the form "\fI@group\fR" apply to the members of the specified \fIgroup\fR\&. .PP If more than one line with limits for a user exist, only the first line for this user will be considered\&. .PP If no lines are specified for a user, the last \fI@group\fR line matching a group whose the user is a member of will be considered, or the last line with default limits if no groups contain the user\&. .PP To completely disable limits for a user, a single dash "\fI\-\fR" will do\&. .PP To disable a limit for a user, a single dash "\fI\-\fR" can be used instead of the numerical value for this limit\&. .PP Ber\(:ucksichtigen Sie auch, dass alle Beschr\(:ankungen nur JE ANMELDUNG gelten\&. Sie sind nicht global und auch nicht dauerhaft\&. Vielleicht wird es einmal globale Beschr\(:ankungen geben, f\(:ur jetzt muss dies aber reichen ;) .SH "DATEIEN" .PP /etc/limits .RS 4 .RE .SH "SIEHE AUCH" .PP \fBlogin\fR(1), \fBsetpriority\fR(2), \fBsetrlimit\fR(2)\&.