Comment on Anon sets up a prank at school
brotundspiele@sh.itjust.works 3 weeks agoI’d scold the sysadmin instead for not cofiguring critical systems in a secure way. Ulimit exists for a reason.
Comment on Anon sets up a prank at school
brotundspiele@sh.itjust.works 3 weeks agoI’d scold the sysadmin instead for not cofiguring critical systems in a secure way. Ulimit exists for a reason.
tetris11@lemmy.ml 3 weeks ago
Huh. I never made that connection before. I always thought ulimit was to prevent excessive disk writes or something
brotundspiele@sh.itjust.works 3 weeks 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.