su 指令出現的問題: su: cannot set user id: Resource temporarily unavailable
本帖最後由 IT_man 於 2017-3-28 10:13 編輯徵狀:
某天因為需要從root su 到一般的user,指令如下:
#su someuser結果show error
su: cannot set user id: Resource temporarily unavailable
查了google得知根本原因是process 最大限制是 1024:
#cat /etc/security/limits.d/90-nproc.conf
# Default limit for number of user's processes to prevent
# accidental fork bombs.
# See rhbz #432903 for reasoning.
* soft nproc 1024 ====>將1024改成大一點如4096就 OK
root soft nproc unlimited
頁:
[1]