xref: /original-bsd/games/dm/dm.8 (revision bdd86a84)
Copyright (c) 1987 Regents of the University of California.
All rights reserved.

Redistribution and use in source and binary forms are permitted
provided that the above copyright notice and this paragraph are
duplicated in all such forms and that any documentation,
advertising materials, and other materials related to such
distribution and use acknowledge that the software was developed
by the University of California, Berkeley. The name of the
University may not be used to endorse or promote products derived
from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.

@(#)dm.8 5.6 (Berkeley) 07/09/88

DM 8 ""
C 8
NAME
dm - dungeon master
SYNOPSIS
ln -s dm game
DESCRIPTION
Dm is a program used to regulate game playing. Dm expects to be invoked with the name of a game that a user wishes to play. This is done by creating symbolic links to dm, in /usr/games, for all of the regulated games. The actual binaries for these games should be placed in a ``hidden'' directory, /usr/games/hide, that may only be accessed by the dm program. Dm determines if the requested game is available and, if so, runs it. The file /usr/games/dm.config controls the conditions under which games may be run. For remotely mounted file systems, a machine name may be appended to the config file name, i.e. the machine ``rip.berkeley.edu'' will use the file dm.config.rip if it is present, otherwise it will use dm.config.

The file /usr/games/nogames may be used to ``turn off'' game playing. If the file exists, no game playing is allowed; the contents of the file will be displayed to any user requesting a game.

FILES
/usr/games/dm.config - configuration file
/usr/games/hide - directory of ``real'' binaries
/usr/games/nogames - turns off game playing
SEE ALSO
dm.config(5)
BUGS
Two problems result from dm running the games setuid ``games''. First, all games that allow users to run UNIX commands should carefully set both the real and effective user id's immediately before executing those commands. Probably more important is that dm never be setuid anything but ``games'' so that compromising a game will result only in the user's ability to play games at will. Secondly, games which previously had no reason to run setuid and which accessed user files may have to be modified.