[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: YA suexec question...
- To: misc_(_at_)_openbsd_(_dot_)_org
- Subject: Re: YA suexec question...
- From: Thanos Tsouanas <thanos_(_at_)_sians_(_dot_)_org>
- Date: Wed, 20 Jul 2005 10:21:57 +0300
- Mail-followup-to: misc_(_at_)_openbsd_(_dot_)_org
On Wed, Jul 20, 2005 at 12:55:23AM +0200, knitti wrote:
> On 7/20/05, Thanos Tsouanas <thanos_(_at_)_sians_(_dot_)_org> 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:thanos_(_at_)_zermelo] ~> 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.
Thanks up to now!
Thanos Tsouanas .: My Music: http://www.thanostsouanas.com/
http://thanos.sians.org/ .: Sians Music: http://www.sians.org/
Visit your host, monkey.org