CentOS 6/linux SU: Unable to set User id: resource is temporarily unavailable

Source: Internet
Author: User

system Environment: CentOS 6.5

Today, when using the SU Switch User Doiido, the following error occurred:
# Su-doiido
SU: Unable to set User id: resource is temporarily unavailable

Doiido user connections are not available with remote SSH tools such as SECURECRT.
Find the relevant information, found in CentOS 6, there is a/etc/security/limits.d/90-nproc.config file, this file limits the maximum number of threads for a user of normal permissions, when the maximum number of threads for this user max user Processes reach the maximum limit, you cannot connect to the login. Therefore, you can modify this parameter only if you cannot reduce the thread, as follows:

1. View MAX User processes

# Su-doiido

SU: Unable to set User id: resource is temporarily unavailable

# Ulimit-u
1024

You can see that the maximum number of threads is 1024



2. Modify MAX User processes
# vi/etc/security/limits.d/90-nproc.conf
* Soft Nproc 1024
Root Soft Nproc Unlimited

It can be seen that all users except the root user are limited to 1024, so the problem can be resolved by annotating this line or by changing the value to
After the modification is complete, save and exit, such modification is effective immediately (tested successfully)



3, you can also modify the/etc/security/limits.conf file, the results are as follows
# cat/etc/security/limits.conf
Doiido Soft Nproc 2047
Doiido Hard Nproc 16384
Doiido Soft Nofile 1024
Doiido Hard Nofile 65535

Note: There is no such file in CentOS 5

CentOS 6/linux SU: Unable to set User id: resource is temporarily unavailable

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.