File: www-cgi

package info (click to toggle)
userv-utils 0.6.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 556 kB
  • sloc: ansic: 2,456; perl: 1,297; makefile: 248; sh: 99
file content (23 lines) | stat: -rw-r--r-- 877 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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