Stress-testing kit
It is your Sys Admin's responsibility to properly anticipate "use-cases" and to fortify his server against them:
https://www.cyberciti.biz/tips/linux-limiting-user-process.html
https://lzone.de/blog/Apply-changes-to-limits.conf-immediately
Example:
- sudo tee -a /etc/security/limits.conf << "EOF"
- @dos hard nproc 30
- @dos soft nproc 20
- EOF
- sudo tee -a /etc/pam.d/sudo << "EOF"
- session required pam_limits.so
- EOF
- sudo groupadd dos
- sudo useradd dos -s /bin/bash -g dos -m -k /dev/null dos
- sudo -u dos -i tee -a .profile << "EOF"
- export PATH="$HOME/bin:$PATH"
- export LD_LIBRARY_PATH="$HOME/lib:$LD_LIBRARY_PATH"
- export LIBRARY_PATH="$HOME/lib:$LIBRARY_PATH"
- export CPATH="$HOME/include:$CPATH"
- EOF
- git pull origin master
- autoreconf -i
or whatever CFLAGS your system allows for `build-world' 3:) just install it to the right user's directory it's prolly BPs to keep this out of your standard path... just FYI
- CFLAGS='-Ofast -ffast-math -funsafe-loop-optimizations -g0 -fomit-frame-pointer -pipe'
- ./configure --prefix=/home/dos
- make
- sudo -u dos make -j1 install
- sudo -u dos -i forkbomb
'should' is a moral statement -- Dr. S. Robbins