I want to globally limit process execution time for a system group to two minutes. The group in question is psacln, the client group for Plesk users that can host websites, login to SSH, etc. It happened several times that such users crashed the webserver because python cgi scripts started resource hogging.

But I can't set it in limits.conf, because cgi scripts started by apache don't go through PAM. So how do I globally set this?

Edit: I know I can use apache's RLimitCPU and such, but I'd like to be able to define this globally. Especially because I've also had servers in which apache itself started consuming too much, and apache resource limit directives are only for spawned processes.

link|improve this question

58% accept rate
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.