博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
su: cannot set user id: Resource temporarily unavailable
阅读量:2441 次
发布时间:2019-05-10

本文共 1338 字,大约阅读时间需要 4 分钟。

Environment

Novell Open Enterprise Server (Linux based)
Novell SUSE Linux Enterprise Server 9

Situation

Unable to login as a particular user
Unable to start an SSH session as a particular user
Unable to "su" as a particular user
All the processes started by the affected user stop working
ERROR: su: cannot set user id: Resource temporarily unavailable

Resolution

The affected user has reached the maximum number of process specified for him into the file /etc/security/limits.conf .
These commands, executed as root, can give you the number of process and of open files for the given user:
ps -U username | wc -l
lsof | grep username | wc -l
To fix the issue increase the NPROC Soft limit according to the user and applications needs; please look at the note below about the /etc/security/limits.conf file.
If third party software is involved, please contact the software vendor to advice about the proper limits to use.

Additional Information

The following is an example configuration file:
# EXAMPLE /etc/security/limits.conf file:
# =======================================
#     
*          soft   nproc       2047
*         hard   nproc       16384
*         soft   nofile       2048
*         hard   nofile      65536

Having this file means, for instance, that every user can start a maximum of 2047 processes and can raise this limit up to 16384.

来自http://www.novell.com/support/kb/doc.php?id=3007194

转载地址:http://zacqb.baihongyu.com/

你可能感兴趣的文章
Java中的异步网络编程 (转)
查看>>
用于核心模式驱动程序的网络体系结构(1) (转)
查看>>
More Effective C++ 条款20 (转)
查看>>
一个程序员的爱恋 (转)
查看>>
足球战术->边锋之Decorator篇 (转)
查看>>
编写优质无错代码(1) (转)
查看>>
MySQL 4.1.0 中文参考手册 --- 6.3 用于 SELECT 和 WHERE 子句的函数 (1) (转)
查看>>
vs.net beta 2中利用DataGrid分页详解 (转)
查看>>
Process-Display-Process (PDP) pattern (转)
查看>>
基于构件复用的软件方法与COM支持 (转)
查看>>
DELPHI中使用API函数详解 (转)
查看>>
Single Entry Point to EJB Layer (转)
查看>>
InsideJVM(3)--Method area(方法区) (转)
查看>>
中文版Windows XP 的新增功能(转)
查看>>
Web Application 開 發 利 器 - WebSnap(三) (转)
查看>>
跟我学 安装Windows Vista Bata2实录(转)
查看>>
Windows Vista IIS 7.0开启方法(转)
查看>>
Windows Vista六大版本详细介绍(转)
查看>>
Windows XP 中注册表内容的导入和导出(转)
查看>>
Linux日志式文件系统面面观(转)
查看>>