On Thu, 7 Sep 2000, Cristian Deacu wrote:
> Pai din cate stiu eu, pentru a folosi suexec trebuie sa
> folosesti virtual servers, si sa spui acolo la User userul drept
> care o sa ruleze scripturile tale cgi.
Asta este o varianta. Dar poate fi folosit si pentru useri obisnuiti:
[radu@digital radu]$ lynx http://gamma.tuiasi.ro/~radu/cgi-bin/test.cgi
Merg CGI-urile pe gamma din conturile userilor!
uid=1013(radu) gid=100(users) groups=100(users),0(root),10(wheel)
> Apoi trebuie sa ai grija
> ca Userul sa aiba un pid destul de mare (asta in functie de valoarea
> lu' --suexec-uidmin cu care ai compilat apache-ul. By default 100)
Pe mashina pe care nu-mi merge am uid-ul 2385
Pe ambele mashini (pe aia care merge si pe aia care nu merge suexec) am RH
6.2, apache si suexec din distributie
> si apoi trebuie ca DocRoot-ul virtual serverului tau sa fie in
> DocumentRoot-ul serverului.
Ti-am spus, nu e neaparat nevoie sa folosesti suexec pe virtualhost:
[radu@digital radu]$ lynx http://www.apache.org/docs/suexec.html
[snip]
User directories:
The suEXEC wrapper can also be used to execute CGI programs as the
user to which the request is being directed. This is accomplished by
using the "~" character prefixing the user ID for whom execution is
desired. The only requirement needed for this feature to work is for
CGI execution to be enabled for the user and that the script must meet
the scrutiny of the security checks above.
[snip]
Radu
--
Radu Filip
Network Administrator @CCTI | tuiasi.ro
[EMAIL PROTECTED] [EMAIL PROTECTED]
http://socrate.tuiasi.ro/ http://www.ccti.tuiasi.ro/
---
Send e-mail to '[EMAIL PROTECTED]' with 'unsubscribe rlug' to
unsubscribe from this list.