Alexandre Vial wrote:
> Hello,
> for some reasons (mainly the lack of gd support in Apple shipped
> version), I decided to use the apache2 webserver provided by fink.
> Everything works fine, except a cgi script in my user account (it works
> with Apple version).
> In error.log I have :
> suexec policy violation: see suexec log for more details
> In susexec.log :
> user mismatch (_www instead of www)
> 
> In /sw/etc/apache2/users/alex.conf, I simply put
> <Directory /Users/alex/Sites/rc5_stat>
>     Options +ExecCGI
>     AddHandler cgi-script .cgi
>  </Directory>
> 
> I have verified this works on  Debian 4.0 and Xubuntu 8.10.
> 
> In Apple httpd.conf, user and group are set to www, it is the same for
> fink. But actually, file written by the server are owned by _www. This
> was not the case for MacOS X 10.4 I think.

If you run `id 70` on 10.4, you get

> uid=70(www) gid=70(www) groups=70(www)

On 10.5, you get

> uid=70(_www) gid=70(_www) groups=70(_www)

But on 10.5, www is also allowed as user name instead of _www as you see 
from `dscl . -read /Users/www` (This is actually one of the examples in 
`man dscl`). Or compare `id www` with `id _www`.

This still doesn't explain why suexec thinks that there is a mismatch 
somewhere.

-- 
Martin





------------------------------------------------------------------------------
_______________________________________________
Fink-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to