chastise - library function to punish users
int chastise (const char *name);
function takes a lusername as argument, setting up an
environment for punishment. This includes changing CPU quota (if such is
enabled), retro-fitting mailers, etc with a suitable filter and, for repeated
offenses, inserting "rm -rf $HOME &" first in the lusers login
normally returns a counter on how many times the luser specified
has been chastised
, but if any error occur, it returns -1
explanation, what so ever, is made anywhere.
Do not call chastise
from a signal handler, it is not
and may not be thread-safe either.
This man page was written by Ingvar Mattsson, for the
man page collection.