Adding Frotz To A Linux Synch BBS Securely
You might ask why we are going to go through all this trouble... the short answer is SECURITY!
In order for you to allow saved game support, and keep "bad" users from overwriting files, we need to provide an environment where certain saved files are allowed, while restricting all other access. Hence, a new user, with permission to only access their home directory.
Please note that this does not work under windows unless a lot of care is taken to insuring a single user does not have write access except in the directory for saved games. Also, if users choose the default file names, they will overwrite each others saved games. I tell users to use USERNAME.GAME.SAV.UID with the UID being something unguessable by other users if they want to find their game unchanged later.
I used Sync 3.14 from CVS and Frotz 2.43 Linux on FC5
- 1. DL/Install Fedora Core 5 Server Install.
- 2. DL/Install Synchronet For Linux. http://www.synchro.net/docs/sbbsunix.txt
- 3. DL/Install Frotz http://www.ifarchive.org/if-archive/infocom/interpreters/frotz/frotz-2.43-3.i386.rpm Or get the source and build it. (put a copy of the frotz executable in /bin/)
- 4. DL a Z-File for an Infocom Game, or copy one from the original media you own. Zork 1, 2, 3 You want the data file, that is the "Z" file we need for Frotz.
- 5. You should make a separate user for your BBS to run as. (not root, i use sbbs) Be sure your BBS operates normally as this new user.
- 6. You should add a user "infocom" with a normal home directory. (/home/infocom/)
- 7. Put your Z files into "infocom" user's home directory. (/home/infocom/zg/) Rename the .DAT file as a .z3 file.
Make sure a user OTHER than infocom owns your Z files, and/or make the directory they are in readable by infocom only.
- 8. Add the following line(s) to your /etc/sudoers file:
This allows "sbbs" (my bbs user) to execute sudo as user infocom and execute frotz.
- 9. Fire Up SCFG. 10 External Programs, 6 Online Programs (Doors), and Add an area called Infocom.
- 10. Enter your New "Infocom" area, and choose 4 Available Online Programs.
- 11. Enter the following information:
- 12. Repeat Step 10-11 for each game to be added.
- 13. Test it. It works great for me!
|