1 DM(8) 386BSD System Manager's Manual DM(8)
4 d
\bdm
\bm - dungeon master
6 S
\bSY
\bYN
\bNO
\bOP
\bPS
\bSI
\bIS
\bS
7 l
\bln
\bn -
\b-s
\bs d
\bdm
\bm _
\bg_
\ba_
\bm_
\be
9 D
\bDE
\bES
\bSC
\bCR
\bRI
\bIP
\bPT
\bTI
\bIO
\bON
\bN
10 D
\bDm
\bm is a program used to regulate game playing. D
\bDm
\bm expects to be invoked
11 with the name of a game that a user wishes to play. This is done by cre-
12 ating symbolic links to d
\bdm
\bm, in the directory /_
\bu_
\bs_
\br/_
\bg_
\ba_
\bm_
\be_
\bs for all of the
13 regulated games. The actual binaries for these games should be placed in
14 a ``hidden'' directory, /_
\bu_
\bs_
\br/_
\bg_
\ba_
\bm_
\be_
\bs/_
\bh_
\bi_
\bd_
\be, that may only be accessed by the
15 d
\bdm
\bm program. D
\bDm
\bm determines if the requested game is available and, if so,
16 runs it. The file /_
\be_
\bt_
\bc/_
\bd_
\bm._
\bc_
\bo_
\bn_
\bf controls the conditions under which games
19 The file /_
\be_
\bt_
\bc/_
\bn_
\bo_
\bg_
\ba_
\bm_
\be_
\bs may be used to ``turn off'' game playing. If the
20 file exists, no game playing is allowed; the contents of the file will be
21 displayed to any user requesting a game.
24 /etc/dm.conf configuration file
25 /etc/nogames turns off game playing
26 /usr/games/hide directory of ``real'' binaries
27 /var/log/games.log game logging file
29 S
\bSE
\bEE
\bE A
\bAL
\bLS
\bSO
\bO
33 Two problems result from d
\bdm
\bm running the games setuid ``games''. First,
34 all games that allow users to run UNIX commands should carefully set both
35 the real and effective user id's immediately before executing those com-
36 mands. Probably more important is that d
\bdm
\bm never be setuid anything but
37 ``games'' so that compromising a game will result only in the user's
38 ability to play games at will. Secondly, games which previously had no
39 reason to run setuid and which accessed user files may have to be modi-
42 H
\bHI
\bIS
\bST
\bTO
\bOR
\bRY
\bY
43 The d
\bdm
\bm command appeared in 4.3BSD-Tahoe.
45 BSD Experimental July 23, 1991 2