When the SU switch user error: Unable to set User id: resource is temporarily unavailable

Source: Internet
Author: User

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
1024x768

It can be seen that the maximum number of threads is 1024x768
2. Modify MAX User Processes
# vi/etc/security/limits.d/90-nproc.conf
* Soft Nproc 1024x768
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)


When the SU switch user error: Unable to set User id: resource is temporarily unavailable

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.