svend
NOTE: As MiniVend has grown more powerful, catalog load time
has increased. Using svend is no longer recommended, and may
not even be possible on some systems. Support for it will be
removed at some future date.
svend is a small C program which is setuid to the user account which
can access the catalog data files. The following defines at the
beginning of svend.c should be set:
-
CGIUSER
-
Set this to the numeric uid (user id) which HTTPD runs cgi-bin
programs under. Typically this will be 'http', 'nobody' or 'guest'.
-
PERL
-
Set this to the location of the perl (version 5 or higher)
executable.
-
VEND
-
Set to the location of minivend.pl, typically in the VendRoot
directory.
Compile svend.c with your C compiler:.
cc svend.c -o svend
On some systems you can make the executable smaller with the strip
program. But don't worry about it if strip is not on your system.
strip svend
If you want MiniVend to run under a different user account than your own,
make that user the owner of svend. (You probably need to be root to do
this). Do not make svend owned by root, because making svend setuid
root is an unnecessary security risk.
chown vendacct svend
Make svend setuid:
chmod u+s svend
Move the svend executable to your cgi-bin directory:
mv svend /the/cgi-bin/directory