Re: [OpenIndiana-discuss] apache24 suexec: cannot get current working directory

2017-12-05 Thread Markus Wernig
On 06.12.2017 00:10, Markus Wernig wrote:

> suexec log:
> [2017-12-05 21:52:48]: uid: (100/$user) gid: (100/$group) cmd: scriptname
> [2017-12-05 21:52:48]: cannot get current working directory
Aah ... found it. There was a path component above the cwd that was indeed
not readable by the user.

best /markus

___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


[OpenIndiana-discuss] apache24 suexec: cannot get current working directory

2017-12-05 Thread Markus Wernig
Hi all

I have apache24 (installed from the oi repos) with mpm_prefork (and thus
mod_cgi), and need to have cgi scripts executed with suexec within
virtual hosts. All the usual prerequisites [1] are met imo, but still I
get an error:

apache log:
[Tue Dec 05 21:52:48.324331 2017] [cgi:error] [pid 9541] [client
n.n.n.n:44930] AH01215: suexec policy violation: see suexec log for more
details: /var/apache2/2.4/htdocs/path/to/vhost/cgi-bin/scriptname,
referer: https://site.tld

suexec log:
[2017-12-05 21:52:48]: uid: (100/$user) gid: (100/$group) cmd: scriptname
[2017-12-05 21:52:48]: cannot get current working directory

Just to rule out a general error: Does anybody have suexec working on
OI? Any ideas?

Thx /markus

[1] https://httpd.apache.org/docs/current/suexec.html

___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss