[PHP] SetUID Scripts with PHP.

2003-03-24 Thread Nikunj Virani
I need to make some PHP Executables which needs root permissions to run. I currently use SetUID Perl scripts for the purpose and they works fine. But now i feel PHP would be better language for the purpose so i want to switch it to PHP. Can any one tell me how can i make setUID PHP scripts ? Th

[PHP] setuid, locked data, security

2002-09-30 Thread Christian Kaiser
Hi, I have an account at a sun server. Until now I've used perl to write CGI scripts. Is there a possibility to prevent files and directories from being read by other users (NFS). Since I'm not root I do not have the possibility to use POSIX functions to set the UID of the current process to m

[PHP] setuid cgi calling a php script.

2002-04-03 Thread php
Hello, I am running the module version of php(4.0.5) AND have a cgi version compiled. The cgi version is php 4.1.1(compiled with --enable-discard-path) and this is on a sunOS 5.8 box. I am trying to run a setuid wrapper that calls a .php4 script. Whenever I enter the url to the .cgi wrap

Re: [PHP] setuid

2001-07-02 Thread mike cullerton
i'm pretty sure apache tries its best to keep things like this (doing anything as root) from happening. you might look at apaches documentation for suexec. on 7/2/01 3:31 AM, Yamin Prabudy at [EMAIL PROTECTED] wrote: > sorry i might miss the discussion bout setuid > can anyone give me an help o

[PHP] setuid

2001-07-02 Thread Yamin Prabudy
sorry i might miss the discussion bout setuid can anyone give me an help on how to run suid root while i have script that run by apache i had alread set the file like this -rwsr-xr-x 1 root www 384 Jul 2 16:36 test but no luck Thanks in Advance -- PHP General Mailing List (http://ww

[PHP] setuid

2001-04-14 Thread Ulysses Almeida
Hi... Is there a way to use posix_setuid without set Apache to run as root? Or, is there some other function to do the same thing? []s .~. Ulysses Almeida / V \ [EMAIL PROTECTED] / ( ) \ Seja livre, use GNU/Linux! ^^-^^ -- PHP General Mailing List (http://www.php.n