1 .\"$Id: limits.5,v 1.5 2002/09/21 08:12:52 nakano Exp $
3 .\" Japanese Version Copyright (c) 2001 Maki KURODA
4 .\" all right reserved,
5 .\" Translated Mon Nov 5 18:12:16 JST 2001
6 .\" by Maki KURODA <mkuroda@aisys-jp.com>
7 .\" Modified Tue 18 Sep 2002 by NAKANO Takeo <nakano@apm.seikei.ac.jp>
12 .\"O limits \- Resource limits definition
13 limits \- ¥ê¥½¡¼¥¹À©¸Â¤ÎÄêµÁ
18 .\"O file (/etc/limits by default or LIMITS_FILE defined config.h)
19 .\"O describes the resource limits you wish to impose.
20 .\"O It should be owned by root and readable by root account only.
22 ¥Õ¥¡¥¤¥ë (¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï /etc/limits¡£
23 ¤¢¤ë¤¤¤Ï config.h ¤ÇÄêµÁ¤·¤¿ LIMITS_FILE)
24 ¤Ë¤Ï¡¢ÀßÄꤷ¤¿¤¤¥ê¥½¡¼¥¹À©¸Â¤òµ½Ò¤¹¤ë¡£
25 ¤³¤Î¥Õ¥¡¥¤¥ë¤Ï root ¤¬½êͤ·¡¢
26 root ¥¢¥«¥¦¥ó¥È¤Î¤ß¤¬Æɤ߹þ¤ß²Äǽ¤È¤¹¤ë¤Ù¤¤Ç¤¢¤ë¡¥
28 .\"O By default no quotas are imposed on 'root'. In fact, there is no way to impose
29 .\"O limits via this procedure to root-equiv accounts (accounts with UID 0).
30 ¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï root ¤ËÂФ¹¤ëÀ©¸Â¤ÏÀßÄê¤Ç¤¤Ê¤¤¡£
31 ¼Â¤Ï¡¢root ¤ÈƱÅù¤Î¥¢¥«¥¦¥ó¥È (UID 0 ¤Î¥¢¥«¥¦¥ó¥È)
32 ¤ò¤³¤Î¼êÃʤˤè¤Ã¤ÆÀ©¸Â¤¹¤ë¤³¤È¤Ï¤Ç¤¤Ê¤¤¡£
34 .\"O Each line describes a limit for a user in the form:
35 ³Æ¹Ô¤Ë¤Ï°Ê²¼¤Î·Á¼°¤Ç¥æ¡¼¥¶¤ËÂФ¹¤ëÀ©¸Â¤òµ½Ò¤¹¤ë¡£
39 .\"O The \fBLIMITS_STRING\fP is a string of a concatenated list of resource limits.
40 .\"O Each limit consists of a letter identifier followed by a numerical limit.
41 \fBLIMITS_STRING\fP ¤Ï¥ê¥½¡¼¥¹À©¸Â¤ÎÄêµÁ¤òÏ¢·ë¤µ¤»¤¿Ê¸»úÎó¤Ç¤¢¤ë¡£
42 ³ÆÀ©¸Â¤ÎÄêµÁ¤Ï¡¢1 ʸ»ú¤Î¼±Ê̻Ҥȡ¢¤½¤ì¤Ë³¤¯À©¸Â¿ôÃͤ«¤é¤Ê¤ë¡£
44 .\"O The valid identifiers are:
45 ͸ú¤Ê¼±Ê̻Ҥϰʲ¼¤ÎÄ̤ꡣ
47 .\"O A: max address space (KB)
48 A: ¥¢¥É¥ì¥¹¶õ´Ö¤ÎºÇÂçÃÍ (KB)
50 .\"O C: max core file size (KB)
51 C: ¥³¥¢¥Õ¥¡¥¤¥ë¥µ¥¤¥º¤ÎºÇÂçÃÍ (KB)
53 .\"O D: max data size (KB)
54 D: ¥Ç¡¼¥¿¥µ¥¤¥º¤ÎºÇÂçÃÍ (KB)
56 .\"O F: maximum filesize (KB)
57 F: ¥Õ¥¡¥¤¥ë¥µ¥¤¥º¤ÎºÇÂçÃÍ (KB)
59 .\"O M: max locked-in-memory address space (KB)
60 M: ¥á¥â¥ê¾å¤Ë¥í¥Ã¥¯¤Ç¤¤ë¥¢¥É¥ì¥¹¶õ´Ö¤ÎºÇÂçÃÍ (KB)
62 .\"O N: max number of open files
63 N: ¥Õ¥¡¥¤¥ë¥ª¡¼¥×¥ó¿ô¤ÎºÇÂçÃÍ
65 .\"O R: max resident set size (KB)
66 R: ¥ì¥¸¥Ç¥ó¥È¥»¥Ã¥È¥µ¥¤¥º¤ÎºÇÂçÃÍ (KB)
68 .\"O S: max stack size (KB)
69 S: ¥¹¥¿¥Ã¥¯¥µ¥¤¥º¤ÎºÇÂçÃÍ (KB)
71 .\"O T: max CPU time (MIN)
72 T: CPU »þ´Ö¤ÎºÇÂçÃÍ (ʬ)
74 .\"O U: max number of processes
77 .\"O K: file creation mask, set by \fBumask\fR(2).
78 K: \fBumask\fR(2) ¤Ë¤è¤êÀßÄꤵ¤ì¤ë¡¢¥Õ¥¡¥¤¥ëºîÀ®»þ¤Î mask
80 .\"O L: max number of logins for this user
81 L: ¤³¤Î¥æ¡¼¥¶¤ÎƱ»þ¥í¥°¥¤¥ó¿ô¤ÎºÇÂçÃÍ
83 .\"O P: process priority, set by \fBsetpriority\fR(2).
84 P: \fBsetpriority\fR(2) ¤Ë¤è¤Ã¤ÆÀßÄꤵ¤ì¤ë¥×¥í¥»¥¹Í¥ÀèÅÙ
86 .\"O For example, \fIL2D2048N5\fP is a valid \fBLIMITS_STRING\fP. For reading convenience,
87 .\"O the following entries are equivalent:
88 Î㤨¤Ð¡¢\fIL2D2048N5\fP ¤ÏÀµ¤·¤¤ \fBLIMITS_STRING\fP ¤Ç¤¢¤ë¡£
89 °Ê²¼¤Î 2 ¤Ä¤ÎÎã¤ÏÅù²Á¤Ç¤¢¤ë¡£2 ÈÖÌܤΤ褦¤ËÆɤ߰פ¯½ñ¤¯¤³¤È¤â¤Ç¤¤ë¡£
91 .\"O username L2D2048N5
94 .\"O username L2 D2048 N5
97 .\"O Be aware that after \fIusername\fP the rest of the line is considered a limit
98 .\"O string, thus comments are not allowed. A invalid limits string will be
99 .\"O rejected (not considered) by the login program.
100 \fIusername\fP °Ê¹ß¤Î¹Ô¤Î»Ä¤ê¤¬À©¸ÂÍѤÎʸ»úÎó¤È¤·¤Æ°·¤ï¤ì¤ë¤Î¤Ç¡¢
101 ¥³¥á¥ó¥È¤Ï½ñ¤¯¤³¤È¤¬¤Ç¤¤Ê¤¤¡£
102 login ¥×¥í¥°¥é¥à¤Ï¡¢Àµ¤·¤¯¤Ê¤¤À©¸Âʸ»úÎó¤ÏµñÀ䤹¤ë (̵»ë¤¹¤ë)¡£
104 .\"O The default entry is denoted by username "\fB*\fP". If you have multiple \fIdefault\fP
105 .\"O entries in your \fBLIMITS_FILE\fP, then the last one will be used as the default
107 ¥Ç¥Õ¥©¥ë¥È¤Î¥¨¥ó¥È¥ê¤Ï¡¢¥æ¡¼¥¶Ì¾¤¬ "\fB*\fP" ¤È¤Ê¤Ã¤Æ¤¤¤ë¤â¤Î¤Ç¤¢¤ë¡£
108 \fBLIMITS_FILE\fP ¤ËÊ£¿ô¤Î\fI¥Ç¥Õ¥©¥ë¥È\fP¤òÅÐÏ¿¤¹¤ë¤È¡¢
109 ºÇ¸å¤Î¤â¤Î¤¬¥Ç¥Õ¥©¥ë¥È»ØÄê¤È¤·¤Æ»ÈÍѤµ¤ì¤ë¡£
111 .\"O To completely disable limits for a user, a single dash "\fB-\fP" will do.
112 ¤¢¤ë¥æ¡¼¥¶¤Ø¤ÎÀ©¸Â¤ò´°Á´¤Ë̵¸ú¤Ë¤¹¤ë¤Ë¤Ï¡¢
113 ¥·¥ó¥°¥ë¥À¥Ã¥·¥å "\fB-\fP" ¤ò»ÈÍѤ¹¤ë¡£
115 .\"O Also, please note that all limit settings are set PER LOGIN. They are
116 .\"O not global, nor are they permanent. Perhaps global limits will come, but
117 .\"O for now this will have to do ;)
118 ¤µ¤é¤Ë¡¢Á´¤Æ¤ÎÀ©¸Â¤ÎÀßÄê¤Ï¡Ö¥í¥°¥¤¥óñ°Ì¡×¤ÇÀßÄꤵ¤ì¤Æ¤¤¤ë¤³¤È¤ËÃí°Õ¤¹¤ë¤³¤È¡£
119 À©¸Â¤Ï¥°¥í¡¼¥Ð¥ë¤Ç¤Ï¤Ê¤¯¡¢±Ê³Ū¤Ç¤â¤Ê¤¤¡£
120 ¥°¥í¡¼¥Ð¥ë¤ÊÀ©¸Â¤Ï¤¤¤º¤ì²Äǽ¤Ë¤Ê¤ë¤À¤í¤¦¤¬¡¢
121 º£¤Î¤È¤³¤í¤Ï¡ÖTO DO¡×¤Ç¤¢¤ë¡£;)
122 .\"nakano ÆóÈÖÌܤÎʸ¤³¤ì¤Ç¤¤¤¤¤Î¤«¤Ê¤¢¡£
133 Cristian Gafton (gafton@sorosis.ro)