chastise(3fun)

chastise3fun

Library function to punish users

Part of chastise(3).

Usage

#include <asr.h>

int chastise (const char *name);

Overview

The chastise 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 file.

Return values

Chastise normally returns a counter on how many times the luser specified has been chastised, but if any error occur, it returns -1 and no explanation, what so ever, is made anywhere.

Important note

Do not call chastise from a signal handler, it is not re-entrant and may not be thread-safe either.

Releases

Unchanged in 6 releases since Debian 3.0 (Woody).

  1. 3.0–7

Author

This man page was written by Ingvar Mattsson, for the alt.sysadmin.recovery man page collection.

From asr-manpages 1.3-6 in Debian 7 (Wheezy). Parsed by carta from the page's man source.