Yes, you can use ulimit. By why should the sysadmin have to bother to do more work to lock a box down?
After an install the box should be "secure".
It shouldn't be necessary to do things to make it secure: that's what Microsoft did in the past and look where it got them.
This is about sane defaults. The Debian team got it right in this case; most other distributions did not.
I was going through other threads to find what I'm referencing to, but there's just too much text to read through it all again. I see that you're saying in another thread it's the administrator's job to keep the system secure. Some other people were bitching about how it's unfair that I compare properly configured (and thus, administrated) windows to a linux system.
I'm getting a little tired of arguing with multiple people without remembering whose stance was exactly what. You all seem to have different opinions, yet you all argue with me and not amongst each others.
Anyway, the rc scripts differ from system to system, and there's no rc.local in every system.
Even then, you aren't guaranteed secure because services you run might set the hard limits up again...
There are kernel patches which provide better solutions, but again, these would need to be applied.
Also, putting too much responsibility on the administrator is just screwed. If the vendor doesn't fix security holes, is it the admin's responsibility to write binary patches?
Well, obviously nobody else is going to do it, but whose responsibility is it really? If you're taking the stance that it indeed is administrator's responsibility to keep the thing secure, no matter what, then we're back to square one regarding my stance on windows and its security.