砍敺 IT_man 2017-3-28 10:13 蝺刻摩 * e* ?9 r: a, y8 }! N7 N
/ N9 \: a) ]4 H% h1 O敺萇:7 U5 o- j7 a- G$ E0 n8 e1 H
/ [& X+ a' c; d) q& ?
憭拙粹閬敺root su 唬祉user,隞文銝:' c. J/ ^- r! F- Z3 s3 b0 m
#su someuser 蝯show error5 c k% m z7 N
su: cannot set user id: Resource temporarily unavailable. J- K2 r. o0 C4 S" e$ g3 C
; I( \% O9 M4 ]( E1 |, h/ \0 o乩google敺交寞砍皰rocess 憭折嗆 1024:
! i" N. j- l. w; H( U% e' {* E) z3 o% T( a9 K ?' C% y; s7 d
#cat /etc/security/limits.d/90-nproc.conf
) F; A3 l% B, A# Default limit for number of user's processes to prevent
" H* R; W6 z) m' q- S# accidental fork bombs.
3 w! O9 [2 ^$ s- y- P- `1 \( T1 n# See rhbz #432903 for reasoning.
- K& E/ P, F' J& a, _) f+ @" d1 L4 X1 I6 B4 @
* soft nproc 1024 ====>撠1024寞憭找暺憒4096撠 OK
( R4 n% x" o7 nroot soft nproc unlimited
/ G. P0 g6 }& m: k% b! p8 u
' f; U( ?, E. C6 B% O
7 ]' w4 J$ }3 n" E) R7 ~5 Y: X. l2 _5 T; O C
# h, X# F$ {+ U: {* z
6 D# T, t: {# |4 c& O0 P8 v3 B |
|