We have an issue where cache and another script just ate our server away making it un-bootable. I believe Windows or Mac OS X would never allow this. After having read "Server logs are filling my hard disk, how do I fix this?" I still need a solution.
Say that a custom script is set to run as root. If that script goes berserk it could output a file that grows and grows on the server until there is no more space available. Even overwriting system files.
Is there any way to ensure that root, or any process on a system from any user, never fill the hard disk to capacity?