Rename www-cgi to ucgi (in nearly all places)
[userv-utils] / ucgi / www-cgi
diff --git a/ucgi/www-cgi b/ucgi/www-cgi
new file mode 100644 (file)
index 0000000..6692349
--- /dev/null
@@ -0,0 +1,23 @@
+# This service which allows CGI programs to be provided which do not
+# run as the webserver user, but instead are owned by a particular
+# other account.
+#
+# Similar effects can be achieved with Apache's suexec; this facility
+# is for administrators who do not trust suexec and wish to defend the
+# webserver from the CGI script providers, and vice versa, as much as
+# possible.  This is achieved by using userv to do the cross-account
+# call, rather than a custom setuid helper.
+#
+# This default configuration allows the webserver user to invoke
+# users' CGI programs from each user's ~/public-cgi, but to allow
+# external http clients to do this, the webserver will also need to be
+# configured.
+
+if ( grep service-user-shell /etc/shells
+   & glob calling-user www-data
+   )
+       reset
+       no-suppress-args
+       no-set-environment
+       execute /usr/local/lib/userv/ucgi/target public-cgi
+fi