Thursday, December 13, 2007

Setting Permissions

If you ran rpm or tar as root when installing the Quake II package on your system, the file permissions
should be properly set already. The quake2 executable was installed setuid root so that it can access the
graphics devices on your system. For security, the ref_*.so rendering libraries are owned by root and
writeable only by him. If root doesn't own the libraries, or they're world writeable, quake2 will refuse to
run.
If you plan to only run Quake II with the GL or X renderers, your quake2 doesn't need to be setuid root. See
Running X and GL games without setuid in the Tips and Tricks section below for information on running
Linux Quake HOWTO
3.3 Adding the Linux Binaries 21
Quake II without root permissions.
Quake2.conf
For security reasons, there is a quake2.conf file, which tells Quake II where to find the rendering libraries
(ref_*.so) it needs. It contains only one line, which should be the path to your Quake II installation.
Quake II looks for this file in /etc. If you installed Quake II from an .rpm file, this file was installed for
you. If you installed from a .tar package, you need to create it like so:
su root
cd /usr/local/games/quake2
pwd > /etc/quake2.conf
chmod 644 /etc/quake2.conf