OpenDoas
OpenDoas copied to clipboard
Setting rlimit
On linux su doesn't reset any rlimits, sudo sets RLIMIT_NRPOC temporarly.
From sudos source:
/*
* Unlimit the number of processes since Linux's setuid() will
* apply resource limits when changing uid and return EAGAIN if
* nproc would be exceeded by the uid switch.
*/