PLAY(1)

NAME
play - play a game

SYNOPSIS
play game [args]
play list

DESCRIPTION
Play gives access to the games on the system and gives the system administrators a way to easily grant and withdraw permission to play those games. To make play work, you need to set up your /usr/games directory to be owned by user games, group games, and set the permissions on /usr/games to 700. Now play will be the only program that can get into the directory, being owned by games itself. When play starts up, it looks for the file /usr/games/locked, and if it finds that file, it prints the contents (it is assumed to contain the reason why you can't play games) and exits. Otherwise play resets its user and group id to the actual caller, then executes the desired game.

EXAMPLES
To enable games-playing at 3pm:
    at "3 pm" << EOF
    rm -f /usr/games/locked
    EOF To disable games-playing every weekday morning at 9am and enable games-playing at 5pm (via cron):
    0 9 0 0 1-5    echo "Games are disabled during regular working hours" >     /usr/games/locked
    0 17 0 0 1-5 rm -f /usr/games/locked

FILES
/usr/games/locked -- The games lockout file.

BUGS
Most users know how to run compilers, and can build their own illicit copies of the games in /usr/games.

AUTHOR
David Parsons ( orc@pell.chi.il.us )