[cgiwrap-users] will cgiwrap help me achieve the following:-
Brought to you by:
nneul
From: Mark W. <cg...@wi...> - 2000-10-10 20:53:13
|
Hi, I am new to administrating cgiwrap, please be patient. I have a script that writes out files to certain users accounts and then does chmod and chown commands to set the write permissions. The program runs fine when executed from the command line as root but when called via a web server it dies trying to write out the first file. Our web server is Apache/1.3.12 running on FreeBSD 3.4 When I installed cgiwrap the 4 binary's were installed to:- /usr/local/www/cgi-bin/ so I copied them to the users cgi-bin, the users name is hinwick and the path is /usr/www/hinwick/cgi-bin so in /usr/www/hinwick/cgi-bin/ I have cgiwrap with it's permissions set as u=rws g=rx o=rx and the actual script called mkdocs.pl with permissions 755 and owner hinwick.admin (group admin since the users who will be allowed to run this script are all part of admin group). I run the script via a url on a protected (by apaches htaccess things) html page, the url being:- http://www.hinwick.co.uk/cgi-bin/cgiwrap/hinwick/mkdocs.pl Only this reports back No script dir Ofcourse the script runs as http://www.hinwick.co.uk/cgi-bin/mkdocs.pl but just doesn't write out the files as it doesn't have permission. But will cgiwrap allow my script to write out to 10 different users accounts a file, doing a chown <user>.admin <filename> and then a chmod u=rw,g=rw,o=r <filename>? M. -- He came from Econet - Oh no, I've run out of underpants :( Home:- ja...@wi... http://www.wizdom.org.uk Shadow:- web...@sh... http://www.shadow.org.uk Work:- ne...@hi... http://www.hinwick.demon.co.uk Web site Monitoring:- http://www.shadow.org.uk/SiteSight/ |