Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ CentOS 6 / Linux su: Unable to set user ID: Resource temporarily unavailable     - Tmux Getting Start (Linux)

- STL in the list of erase () method (Programming)

- Modify Linux terminal prompt path length (Linux)

- Introduces Linux kernel compilation system and compiler installation (Linux)

- Five Linux user space debugging tool (Linux)

- Android using SVG vector graphics to create cool animation effects (Programming)

- CentOS network configuration 7, and set the host name and IP-bound problems (Linux)

- Oracle 11.2.0.3 and MySQL5.6 DDL comparison (Database)

- How do I cancel (almost) any operations in Git, (Linux)

- How to remove the files inside the privacy of data on Linux (Linux)

- First start with Kali Linux 2.0 (Linux)

- New features of Java 9 HTTP2 and REPL (Programming)

- Simple security measures to reinforce the Linux kernel (Linux)

- Linux System Getting Started Learning: modify environment variables in Linux PATH (Linux)

- Linux System Tutorial: Ubuntu on the desktop is disabled by default keyring to unlock tips (Linux)

- Open remote MySQL database connection managed under CentOS (Database)

- Install Ruby on Rails in Ubuntu 15.04 in (Linux)

- Share useful bash aliases and functions (Linux)

- CentOS 6.6 install JDK7 (Linux)

- Linux disk partition batch format mount script (Linux)

 
         
  CentOS 6 / Linux su: Unable to set user ID: Resource temporarily unavailable
     
  Add Date : 2017-08-31      
         
         
         
  System environment: CentOS 6.5

Today, using su switch user doiido of time, there has been an error as follows:
# Su - doiido
su: Unable to set user ID: Resource temporarily unavailable

Use SecureCRT SSH and other remote tools are unable to use doiido user connections.
Find relevant information found in CentOS 6, there /etc/security/limits.d/90-nproc.config file, which limits the maximum number of threads ordinary rights of the user, when the user maximum number of threads max user processes to reach the highest number of restrictions, you can not connect to the login. It can only modify this parameter in the thread can not be reduced, the specific changes as follows:

1, View max user processes

# Su - doiido

su: Unable to set user ID: Resource temporarily unavailable

# Ulimit -u
1024

It can be seen that the maximum number of threads 1024

2, modify the max user processes
# Vi /etc/security/limits.d/90-nproc.conf
* Soft nproc 1024
root soft nproc unlimited

In addition to the above can be seen outside the root user for all users are limited to 1024, and therefore to resolve the problem through this line may be a comment or change the value of a large
After editing save and exit, such a modification is immediately in force (tested successfully)

3, you can also modify /etc/security/limits.conf file, modify the following results
# Cat /etc/security/limits.conf
doiido soft nproc 2047
doiido hard nproc 16384
doiido soft nofile 1024
doiido hard nofile 65535

Note: No such file in the CentOS 5
     
         
         
         
  More:      
 
- Linux serial debugging tools xgcom install (Linux)
- MongoDB in bulk timestamp change the date format (Database)
- Network security system (Network)
- Python kills corresponding process according to pid (Programming)
- CentOS 7 update source - the use of domestic sources 163 yum (Linux)
- SQLite database commonly used sentences and visualization tools on MAC MeasSQLlite use (Database)
- Change all child files and subdirectories in the owner permissions Ubuntu (Linux)
- Moosefs Distributed File System Configuration (Server)
- Linux Getting Started tutorial: build your own Vim (Linux)
- Linux supports serial output method (Linux)
- Linux to achieve a simple cp command (Linux)
- Ubuntu 12.04 installation DHCP Server (Server)
- Linux start the process (Linux)
- How to make a U disk to install Ubuntu (Linux)
- MySQL Data Types (Database)
- Windows and Ubuntu dual system, repair of two ways UEFI boot (Linux)
- Improve WordPress performance (Server)
- TOAD connect DB2 error SQL1460N solve (Database)
- CentOS 5.5 install ntop (Linux)
- Cool Android realization SVG animation (Programming)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.