File:  [ELWIX - Embedded LightWeight unIX -] / suX / etc / suX.conf
Revision 1.2.2.4: download - view: text, annotated - select for diffs - revision graph
Wed Jun 17 14:01:33 2015 UTC (9 years, 5 months ago) by misho
Branches: sux3_2
Diff to: branchpoint 1.2: preferred, unified
adds control of sux execution group
patch & improve execution of sux when we are called from fastcgi and content arriving from stdin!

#
# Example config for suX service
#

[global]
# Mode for SUID:: (uid/gid comes from) 
#   script	= envvar "SUX_USER" or if is unset SUX_USER, uid/gid comes from script in envvar "PATH_TRANSLATED"
#   file	= exec/request file
#   dir		= directory of file
mode = "script"

priority = 0

[associate]
default = "/bin/sh"
# if we choose to execute suX with STDIN source for content
stdin = "/usr/local/bin/php-fastcgi"

# if value string is empty direct execute program ...
pl = "/usr/bin/perl"
py = "/usr/local/bin/python"
rb = "/usr/local/bin/ruby"
sh = "/bin/sh"
cgi = "/bin/sh"
inc = "/usr/local/bin/php-fastcgi"
php = "/usr/local/bin/php-fastcgi"
phps = "/usr/local/bin/php-fastcgi"
php3 = "/usr/local/bin/php-fastcgi"
php4 = "/usr/local/bin/php-fastcgi"
php5 = "/usr/local/bin/php-fastcgi"

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>