The Problem
If you're on a CentOS WHM hosting platform and added yourself as a sudo user in the wheel group but anytime you try to do sudo from your own account you get: sudo: PERM_ROOT: setresuid(0, -1, -1): too many processes the solution is actually super simple to fix.
First off, if you're getting this on any other Linux platform, I have no idea how to fix it... there are some posts out there on a few other errors and the fix points to adding more nproc limits for your user but in my case, my user had 35 processes it could use and I was only using 2 of those 35...
The Fix
To fix the annoying sudo: PERM_ROOT: setresuid(0, -1, -1): too many processes error, the steps are easy:
1) Login to your CentOS cPanel WHM hosting page.
2) Do a search over on the upper left for fork and the only result should come up as: Shell Fork Bomb Protection (click on the result)
3) On the "Shell Fork Bomb Protection" page, simply disable it and you're done! It's that easy!
I tried searching for a fix to what is a crazy simple solution to the problem and came up with absolutely nothing. The only page that seemed to be related was on the CentOS forums and it turned out to be a typical forum of "Here's a problem but nobody has a fix for it".
Hope this helps and as always, leave a comment if this got you going!
Post Comment