in /usr/local/apache/logs/suexec_log am urmoarorul mesaj de eroare:

[2003-06-25 11:02:27]: uid: (26/postgres) gid: (100/100) cmd: menu.pl
[2003-06-25 11:02:27]: cannot run as forbidden uid (26/menu.pl)

Aceasta in conditiile in care virtual host_ul este de forma:

<VirtualHost *>
    ServerName 192.168.1.135
    ServerAdmin [EMAIL PROTECTED]
    DocumentRoot /xxx/postgres/public_html
    ScriptAlias /cgi-bin/ /xxx/postgres/cgi-bin/
    SuexecUserGroup postgres users
    ErrorLog /usr/local/apache/logs/error_log_suexec
    <Directory "/xxx/postgres">
         Options +Includes
    </Directory>
    <Directory "/xxx/postgres/public_html">
         AllowOverride all
    </Directory>
    <Directory "/xxx/postgres/cgi-bin">
         AllowOverride Limit
         Options ExecCGI
         Order allow,deny
         Allow from 192.168.0.0/255.255.0.0
         Deny from all
    </Directory>
</VirtualHost>

iar # ps aux | grep apache
root      2030  0.0  0.1  4108 1692 ?        S    11:02   0:00
/usr/local/apache
nobody    2031  0.0  0.1  4216 1828 ?        S    11:02   0:00
/usr/local/apache
nobody    2032  0.0  0.1  4216 1828 ?        S    11:02   0:00
/usr/local/apache
nobody    2033  0.0  0.1  4224 1848 ?        S    11:02   0:00
/usr/local/apache
nobody    2034  0.0  0.1  4216 1828 ?        S    11:02   0:00
/usr/local/apache
nobody    2035  0.0  0.1  4216 1828 ?        S    11:02   0:00
/usr/local/apache
nobody    2036  0.0  0.1  4216 1828 ?        S    11:02   0:00
/usr/local/apache
root      2167  0.0  0.0  3276  628 tty5     S    11:07   0:00 grep apache

Ce nu-i place?


> De remarcat este faptul ca daca comentez linia: SuexecUserGroup postgres
> users
> din virtualhost, acesta merge !
>
> (adica scap de msajul de eroare:
> Internal Server Error
> The server encountered an internal error or misconfiguration and was
unable
> to complete your request.
>
> Please contact the server administrator, [EMAIL PROTECTED] and inform them of
> the time the error occurred, and anything you might have done that may
have
> caused the error.
>
> More information about this error may be available in the server error
log.
>
>
> --------------------------------------------------------------------------
--
> ----
>
> Apache/2.0.46 (Unix) Server at 192.168.1.135 Port 80
> )
>
>
>
> > Revin!
> > Incerc sa pun Apache_ul cu modulul suEXEC.
> >
> > Am recompilat apache_ul (httpd-2.0.46) cu urmatorul script:
> >
> > #!/bin/sh
> >
> > pre=/usr/local/apache
> > ./configure --prefix=$pre \
> >    --enable-suexec \
> >    --with-suexec-caller=nobody \
> >    --with-suexec-userdir=cgi-bin \
> >    --with-suexec-docroot=/xxx \
> >    --with-suexec-logfile=$pre/logs/suexec_log \
> >    --with-suexec-uidmin=500 \
> >    --with-suexec-gidmin=100 \
> >    --with-suexec-safepath="/bin:/usr/bin:/usr/local/jdk"
> > make
> > make install
> >
> >
> > in urma compilarii am urmatoarele module instalate:
> > #/usr/local/apache/bin/httpd -l
> >
> > Compiled in modules:
> >   core.c
> >   mod_access.c
> >   mod_auth.c
> >   mod_include.c
> >   mod_log_config.c
> >   mod_env.c
> >   mod_setenvif.c
> >   prefork.c
> >   http_core.c
> >   mod_mime.c
> >   mod_status.c
> >   mod_autoindex.c
> >   mod_asis.c
> >   mod_suexec.c
> >   mod_cgi.c
> >   mod_negotiation.c
> >   mod_dir.c
> >   mod_imap.c
> >   mod_actions.c
> >   mod_userdir.c
> >   mod_alias.c
> >   mod_so.c
> >
> > Am creat directoarele:
> > /xxx/postgres                            755     postgres     users
> > /xxx/postgres/public_html          755     postgres     users
> > /xxx/postgres/cgi-bin                 755     postgres     users
> >
> > in httpd.conf am adaugat la sfarit:
> >
> > <VirtualHost *>
> >     ServerName www.servsal1
> >     DocumentRoot /xxx/postgres/public_html
> >     ScriptAlias /cgi-bin/ /xxx/postgres/cgi-bin/
> >     SuexecUserGroup postgres users
> > </VirtualHost>
> >
> > in /usr/local/apache/logs/error_log apare:
> > [Tue Jun 24 14:48:13 2003] [notice] suEXEC mechanism enabled (wrapper:
> > /usr/local/apache/bin/suexec)
> > (adica zic eu ca porneste cu modulul suEXEC activat)
> >
> > Nu vrea sa ruleze scripturile CGI din /xxx/postgres/cgi-bin
> > Unde-i buleaua?
> >
> >
> >
> >
> >
> >
>
>
>


Raspunde prin e-mail lui