砍敺 IT_man 2017-3-28 10:13 蝺刻摩
7 D4 W1 R; d0 p8 Q* s) \5 K* \1 `# ]5 T' K+ n& O K. K
敺萇:% j0 w! \- u8 m: [6 o" E
: @$ H$ I# v2 V& p憭拙粹閬敺root su 唬祉user,隞文銝:3 s9 y: k& ]* [: {* H# w
#su someuser 蝯show error
7 d5 ~. W( m, _1 |# Hsu: cannot set user id: Resource temporarily unavailable% c( R% d% V8 i) U8 N) q
. g( N# }1 ^9 S8 x乩google敺交寞砍皰rocess 憭折嗆 1024:
& {( d7 ]" F2 c) Y; e r, K- v: {1 D
#cat /etc/security/limits.d/90-nproc.conf
) @5 C- a# v1 w6 @ E) y# Default limit for number of user's processes to prevent
) z) L) `8 }" y$ R+ K& r# accidental fork bombs.6 ^" b, z6 D' C |+ G
# See rhbz #432903 for reasoning.
8 p, |7 Z3 P) v. G( O: i
) N; |% ~! {$ n" h: R b7 a8 ?* soft nproc 1024 ====>撠1024寞憭找暺憒4096撠 OK
: t: e' y2 ^" }, v; h( e- V8 x3 Rroot soft nproc unlimited2 W9 |9 K F, k3 i7 j; U+ D1 K/ I
( u$ w: A' U) f& @7 o/ g
) Q m, `( G- p' F
a, [% T" R* {. L
" B7 Y' _- r/ o1 f
$ d# d# `* D2 p( w |
|