On Wed, Jul 20, 2005 at 12:55:23AM +0200, knitti wrote:
> On 7/20/05, Thanos Tsouanas <[EMAIL PROTECTED]> wrote:
> > I've added
> >         User foo
> > on a VirtualHost apache directive,
> > 
> > but when I try to exec the cgi script I want, these appear in the error
> > logs:
> > (9)Bad file descriptor: getpwuid: invalid userid 2050
> > 2050 being the correct userid for the User supplied at the httpd.conf
> > 
> > wrapper seems to work:
> > [1:11:[EMAIL PROTECTED] ~> httpd -l | grep su
> > suexec: enabled; valid wrapper /usr/sbin/suexec
> > 
> > Why is this userid invalid?  Any ideas?  I get the feeling I'm missing
> > something obvious here...
> 
> do you have a user database inside the chroot?

I had forgot the .db files, and put them as well, as chaton suggested,
and the "invalid userid" error is now gone.

The problem is,
Premature end of script headers

The script runs fine without the User/Group directives, and also runs
fine if I su to the user and run it by hand.

Any ideas?

Thanks up to now!

-- 
Thanos Tsouanas          .: My Music: http://www.thanostsouanas.com/
http://thanos.sians.org/ .: Sians Music: http://www.sians.org/

Reply via email to