Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
chastise(3)		    Library Functions Manual		     chastise(3)

NAME
     chastise  - library function to punish users

SYNOPSIS
     #include <asr.h>

     int chastise (const char *name);

DESCRIPTION
     The chastise function takes a lusername as argument, setting up an environ-
     ment for punishment. This includes changing CPU quota (if such is enabled),
     retro-fitting  mailers,  etc  with  a suitable filter and, for repeated of-
     fenses, 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 explana-
     tion, 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.

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

4th Berkeley Distribution      Release 0.001 Alpha		     chastise(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=chastise&sektion=3&manpath=FreeBSD+Ports+15.1.quarterly>

home | help