🍹Early to RISA 🧉@sh.itjust.worksM to Greentext@sh.itjust.works · 2 days agoAnon sets up a prank at schoolsh.itjust.worksimagemessage-square73fedilinkarrow-up1671arrow-down113
arrow-up1658arrow-down1imageAnon sets up a prank at schoolsh.itjust.works🍹Early to RISA 🧉@sh.itjust.worksM to Greentext@sh.itjust.works · 2 days agomessage-square73fedilink
minus-squareoptional@sh.itjust.workslinkfedilinkarrow-up58arrow-down1·1 day agoI’d scold the sysadmin instead for not cofiguring critical systems in a secure way. Ulimit exists for a reason.
minus-squaretetris11@lemmy.mllinkfedilinkarrow-up2·6 hours agoHuh. I never made that connection before. I always thought ulimit was to prevent excessive disk writes or something
minus-squareoptional@sh.itjust.workslinkfedilinkarrow-up2·3 hours agoulimit -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.
I’d scold the sysadmin instead for not cofiguring critical systems in a secure way. Ulimit exists for a reason.
Huh. I never made that connection before. I always thought ulimit was to prevent excessive disk writes or something
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.