ftp.nice.ch/pub/next/unix/network/www/addrecord1.1.README

This is the README for addrecord1.1.s.tar.gz [Download] [Browse] [Up]

Name:  Web-based Rolodex (data-entry component)
Author: anonymous
Copyright: Public Domain Software
Date: Thu Nov 21 16:06:20 PST 1996
Version: 1.1

This is a CGI program package that accepts Rolodex like textural
data entry via Web.  The Rolodex data may be indexed and searched via Web
using other software such as Swish (or free-WAIS-sf).

I use this for my personal Web-based Rolodex, which I can
search and add entries to from anywhere in the world.

Obviously, if your Web security is lax, your private life
may be open to the world as well.  So, be careful.

Although I do have access control, I do not completely trust it.
That is why this is an anonymous contribution, so that nobody
gets an idea and probe my Web server.  Just in case.



=========== Installation ===========================
[1] Edit "config.h" to match your local configuration.

[2] Setup save directory structure
  (a)  Create data directories starting with BASE_DIR in config.h.
  (b)  Create BASE_DIR/.categories file (see "Sample.category" file,
	 and change the lines to reflect the actual directory struct.)
	(Content of this file appears within a selector on the form
	 for specifying a directory to save.)

[3] make
    and install the executable in a cgi-bin directory as below.

Executable addrecord needs to be SUID for the owner of data direcotry.
Otherwise, the program runs as user "nobody", and won't be able to
write to data directory.  In no case, the owner of addrecord and
the data directories should be "root".
If possible create a user "rolodex", and set the owner of the
addrecord executable and BASE_DIR (and its subdirectries) to
rolodex.  Then, immediate security comprimizes may be limited to
files that are ownd by this user (disable remote login as this user
if possible).

cp addrecord path_to_addrecord_executable
chmod u+s path_to_addrecord_executable
ls -l path_to_addrecord_executable
(confirm: -rwsr-xr-x and if owner is appropriate)

[4] Set up access control (directives in httpd config files,
password, .htaccess files, etc)

[5] Generate static form for data entry startup.

cc -Wall -o redo_form -DSTARTUPFORM redo_form.c
redo_form >addrecord.html

copy addrecord.html to appropriate location.


#### Next two steps are left as an excercise for you. ####

[6] Set up indexing scheme for web searching.

Need for reindexing is indicated by the presence of a file
".update-index" in the database root directory (BASE_DIR)
See config.h

[7] Set up Web searching either by Swish or free-WAIS-sf.


These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.