砍敺 IT_man 2017-3-28 10:13 蝺刻摩
4 U( }: R c y6 A. D' |: M% A h5 w4 v2 q, |8 Z% ?
敺萇:; Q0 e' Q3 s5 z' h
4 L9 S7 V k- P5 r5 p0 [5 w
憭拙粹閬敺root su 唬祉user,隞文銝:6 ^( E1 |/ L: x+ s; U/ R# G5 { n$ |
#su someuser 蝯show error
+ E3 ]7 \* i, s, g* q0 ksu: cannot set user id: Resource temporarily unavailable' n3 I O5 Z1 R2 ^0 A0 N
( y) @) G" \5 h5 B# m3 L% S# ?
乩google敺交寞砍皰rocess 憭折嗆 1024:6 M9 w& o2 z% X
5 n9 V+ G; L! w* X4 L#cat /etc/security/limits.d/90-nproc.conf! p, @9 q& r0 G" |5 I4 b1 l
# Default limit for number of user's processes to prevent3 t- u+ f0 p. a2 [9 L I; E
# accidental fork bombs.
# j/ h( g# x; P; W& L# See rhbz #432903 for reasoning.
, t( ]& T% N7 C- [' v }; @( R; Q
U3 B. D2 }: M# K: O: }6 {6 Z* soft nproc 1024 ====>撠1024寞憭找暺憒4096撠 OK* _) Q) z8 V. X+ I6 N
root soft nproc unlimited
$ g% h4 M9 B' \! z! {
6 X1 y, H8 G# }8 K) q3 s
' d: n# ]' }5 }5 l* ?; F: O
: B! H8 y, o% h o
5 F8 D" A* ]$ D& a0 g) q% g) ]* L8 {6 U% V2 ~
|
|