this post was submitted on 14 Feb 2025
692 points (98.1% liked)

Greentext

5204 readers
1036 users here now

This is a place to share greentexts and witness the confounding life of Anon. If you're new to the Greentext community, think of it as a sort of zoo with Anon as the main attraction.

Be warned:

If you find yourself getting angry (or god forbid, agreeing) with something Anon has said, you might be doing it wrong.

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] brotundspiele 58 points 6 days ago (1 children)

I'd scold the sysadmin instead for not cofiguring critical systems in a secure way. Ulimit exists for a reason.

[–] [email protected] 2 points 5 days ago (1 children)

Huh. I never made that connection before. I always thought ulimit was to prevent excessive disk writes or something

[–] brotundspiele 2 points 5 days ago

ulimit -H -u 10 will (hard)limit the current process (the shell) to 10 subprocesses. You can also use it to limit the number of open files etc.

To globally configure that for a user/group you'd use /etc/security/limits.conf instead.

If you want to prevent users from filling up the disk, take a look into quota.