From 254f340f4c40d35a3dc0e67aec96fca50d271bee Mon Sep 17 00:00:00 2001 From: dfs Date: Sun, 31 Aug 1997 17:09:45 +0000 Subject: [PATCH] -- Made WWW Makefile do a "chown" to accomodate Remind security features. --- www/Makefile | 15 ++++++++++++++- www/README | 10 ++++++++-- 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/www/Makefile b/www/Makefile index 8b4801ea..5681be4a 100644 --- a/www/Makefile +++ b/www/Makefile @@ -2,7 +2,7 @@ # This file is part of REMIND. # Copyright (C) 1992-1997 by David F. Skoll -# $Id: Makefile,v 1.5 1997-07-31 02:19:04 dfs Exp $ +# $Id: Makefile,v 1.6 1997-08-31 17:09:45 dfs Exp $ # The complete name of your www host. Example: www.mycompany.com WWWHOST = shevy.skoll.ca @@ -17,6 +17,10 @@ SCRIPTDIR = /var/web/cgi-bin # they live in WWWHOST/cgi-bin, supply /cgi-bin CGIDIR = /cgi-bin +# The effective user of the REMIND process when started by your +# web server +CGIUSER = nobody + # The complete path to the HTML file "calendar.html". This is a sample # file containing links to all the scripts. This path should be the # path as seen by the UNIX operating system @@ -62,3 +66,12 @@ install: chmod 755 $(SCRIPTDIR)/calps $(SCRIPTDIR)/hebdate \ $(SCRIPTDIR)/hebps $(SCRIPTDIR)/moon $(SCRIPTDIR)/sunrise \ $(SCRIPTDIR)/sunset $(SCRIPTDIR)/hebhtml $(SCRIPTDIR)/rem2html + chown $(CGIUSER) $(SCRIPTDIR)/sunrise.rem + chown $(CGIUSER) $(SCRIPTDIR)/moon.rem + chown $(CGIUSER) $(SCRIPTDIR)/hebdate.rem + chown $(CGIUSER) $(SCRIPTDIR)/sunset.rem + chown $(CGIUSER) $(HTMLDIR)/calendar.html + chown $(CGIUSER) $(SCRIPTDIR)/cal_dispatch + chown $(CGIUSER) $(SCRIPTDIR)/calps $(SCRIPTDIR)/hebdate \ + $(SCRIPTDIR)/hebps $(SCRIPTDIR)/moon $(SCRIPTDIR)/sunrise \ + $(SCRIPTDIR)/sunset $(SCRIPTDIR)/hebhtml $(SCRIPTDIR)/rem2html diff --git a/www/README b/www/README index 3bc079f3..f90f8d66 100644 --- a/www/README +++ b/www/README @@ -1,5 +1,5 @@ README -$Id: README,v 1.5 1997-07-31 02:19:04 dfs Exp $ +$Id: README,v 1.6 1997-08-31 17:09:46 dfs Exp $ HTML Hebrew Calendar Server @@ -26,7 +26,13 @@ server: 3) Type "make install" -4) Test it out. It will generate links of the form: +4) Because of the new REMIND security features, all of the www files + must be owned by the effective uid of REMIND. That is, if your + web server runs CGI programs as root, REMIND's script files must + be owned by root. If REMIND is run as nobody, its script files + must be owned by nobody. + +5) Test it out. It will generate links of the form: http://www.your_server.com/your_cgi-bin/cal_dispatch?what