Tag Archives: su: cannot set user id: Resource temporarily unavailable

su: cannot set user id: Resource temporarily unavailable

A server suddenly fails to connect, but root can log in. Su – Tong reports an error

su: cannot set user id: Resource temporarily unavailable

Most people on the Internet say that the number of user processes is limited, but only 122 processes (PS – EF | WC – L) can be found on the whole server. But according to the following operation modification is really feasible, but also confused

Nproc (maximum number of processes available to a single user)

The problem can be solved by modifying the nproc value of the system

1. Add the following two lines to the limit file

vi /etc/security/limits.conf

* soft nproc 10240

* hard nproc 10240

2. Modify the default value of nproc from 1024 to 10240

[ root@cn-collect01 ~]# vi /etc/security/limits.d/90-nproc.conf

* soft nproc 10240