砍敺 IT_man 2017-3-28 10:13 蝺刻摩
# B* u1 A$ P' u2 h& ~# c* [3 `) w' f' D' s2 m
敺萇:
; F$ t( u& D1 z$ A% p$ y% G% Z; f6 z. E5 K/ r
憭拙粹閬敺root su 唬祉user,隞文銝:
+ Y* _& K5 T" x7 L& }4 Y3 [#su someuser 蝯show error
' m" ], o) Q4 G8 h3 r m' _su: cannot set user id: Resource temporarily unavailable, v) c; c; O7 H0 b6 z) Q5 e
6 I, ^; v. f1 A5 v& {乩google敺交寞砍皰rocess 憭折嗆 1024:9 B0 T$ _ H0 k) R( [
9 }- _- A/ q. t; X#cat /etc/security/limits.d/90-nproc.conf
f2 d$ h* }7 z; a- C' W8 ^4 p# Default limit for number of user's processes to prevent
: C* Z4 E# v8 G: E# accidental fork bombs.4 b- ?* O7 x {1 I) L- `& g6 y: b$ l
# See rhbz #432903 for reasoning.
9 L. W8 `/ D. w
( T( a7 @7 t2 r b3 m* soft nproc 1024 ====>撠1024寞憭找暺憒4096撠 OK, f# h w! L3 l/ y
root soft nproc unlimited
/ d+ l- D8 y* l) ~; c, T8 k( Q' f: C' @
, B% d3 ?; O3 @& H8 ]: M% K- L
; W" `) u' ^8 ]" A0 ^4 ?. Q) @' R7 z% e6 f
7 t, x/ ~1 B- D0 K9 J |
|