砍敺 IT_man 2017-3-28 10:13 蝺刻摩
4 S; [+ h H, c- h1 m
* ?* O+ T5 r1 L9 S0 [' X6 [/ g/ i敺萇:; q m; ]0 }6 o+ `
% y, P i# `' A! v6 K
憭拙粹閬敺root su 唬祉user,隞文銝:% s+ X* \5 S- ?3 ~, ?3 B
#su someuser 蝯show error
( c, a( q8 F7 d6 l) Vsu: cannot set user id: Resource temporarily unavailable3 k) m# L7 M, J5 l
7 R8 }$ X; w! H0 ?' L( f
乩google敺交寞砍皰rocess 憭折嗆 1024:
8 A& t9 c2 Y" U6 |( W' d% N2 Z% w; i! S/ K0 a3 i! Q$ @
#cat /etc/security/limits.d/90-nproc.conf' `9 |7 x; x3 N
# Default limit for number of user's processes to prevent
. k9 }% f$ y# T3 V7 b; i# accidental fork bombs.
6 \ q8 ?$ R& Z1 ~9 N) _# See rhbz #432903 for reasoning.' v. Q% ^. b4 u
- b6 n- k8 q7 g* soft nproc 1024 ====>撠1024寞憭找暺憒4096撠 OK. F# X1 s1 c% ~. Z8 F4 ]
root soft nproc unlimited2 T$ o9 R1 x g' I" k9 z
0 I. A% \) U% d3 N4 t, w
8 y4 V2 j2 t2 n' T3 w
1 O" \9 i: ~; i
' U1 u( R: w! b( _0 t* S0 K8 x- ^- n: P1 A1 i8 X
|
|