#su -
su: cannot set user id: Resource temporarily unavailable
#
After searching and googling few minutes, i found a quick resolution to fixing this issue.
This is all about VPS limit.
Edit limit.conf below or change if needed.
#vi /etc/security/limit.conf
#### add/change on these line below:
* soft nproc 2047
* hard nproc 16384
* soft nofile 2048
* hard nofile 65536
After that try to relogin using a normal access user and then try to get su -
this should fixed your issue.
I’m not that much of a online reader to be honest but your sites
ReplyDeletereally nice, keep it up! I'll go ahead and bookmark your site to come back later. All the best
The file to edit is not /etc/security/limit.conf. It is /etc/security/limits.conf
ReplyDelete# su -
ReplyDeletesu: cannot set user id: Resource temporarily unavailable OR it continues to ask for password (even though I'm putting it in correctly and have even re-entered passwords into GoDaddy's control panel for deanflory AND WHM for root's password
OR
# sudo su -
RESPONSE: sudo: PERM_ROOT: setresuid(0, -1, -1): too many processes
The issue was resolved by editing the /etc/security/limits.d/90-nproc.conf file to allow root more open files. After that, sysctl -p /etc/sysctl.conf was used to make it take effect.