砍敺 IT_man 2017-3-28 10:13 蝺刻摩
2 @! M5 M. C6 R9 r7 t |- L
! t9 l/ w9 H, B- }+ o$ f敺萇:
% Y5 Z0 \, o1 _5 P4 S
, _% K7 u ^- H) z" y1 R/ e, Y憭拙粹閬敺root su 唬祉user,隞文銝:
: S& W+ M9 O2 W( ~#su someuser 蝯show error
0 L1 Y8 W. b, [! _& }7 A }$ g4 Asu: cannot set user id: Resource temporarily unavailable/ L- h! q( R4 O' x
, p( F/ a- f" S3 J7 u) ^
乩google敺交寞砍皰rocess 憭折嗆 1024:; d! x- {3 ?1 {
. C& V# j7 ~1 K. d6 f0 O3 x. q( y#cat /etc/security/limits.d/90-nproc.conf
9 k- R L# `6 E# Default limit for number of user's processes to prevent
C: G$ l9 t9 A6 P: F# E# accidental fork bombs.* R5 r: R5 c# u2 x7 f( u7 @
# See rhbz #432903 for reasoning.7 u% h# K. {8 g7 u- r
- G; k! {, k' j b; Y9 K2 O4 ~, [* soft nproc 1024 ====>撠1024寞憭找暺憒4096撠 OK
& D8 E6 |/ D" B9 d! `/ T* ?root soft nproc unlimited) E Z) B5 K% e) `8 h& E
4 y. `4 b5 S! W& H2 j" |8 ]$ g" }* \2 m+ S
% N7 p1 O/ O7 Y+ M# }" U9 d% c- o0 q1 k0 x
9 b: U+ C. {$ B, Y* ]# [+ M |
|