Is there a source code for /usr/bin/ulimit? I need to see a user's complete list of rlimit
's without him being in a shell.
In this case, we have problems running memory-intensive programs from the web server (user wwwrun, usually having /bin/false
as login shell in /etc/passwd
), and we suspect some system-imposed limits are blocking it from completing these programs.
In former times, there has been a /usr/bin/ulimit binary, but these seem to be gone.
So what I'm looking for is a C implementation of the ulimit command (nowadays usually being only available as (ba)sh built-in). It doesn't need to have any "setrlimit" capabilities - just printing all limits would be sufficient. We'd then set this command as wwwrun's login shell and a "su - wwwrun" would show all rlimits this user has.
Thanks for any hints!