RE: [PHP] Giving my script the power!
| From: | Javier Muniz | Date: | Thu, 29 Mar 2001 21:40:21 +0000 |
| Subject: | RE: [PHP] Giving my script the power! | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-46164@lists.php.net to get a copy of this message | ||
I do a similar thing on my machines, only instead of having a java daemon
that runs as root I chose to create a database that the php script can
insert user and other information into, then a perl script that is called
from cron that fetches from the database and does the necessary user adds.
This is a nice system for adding users to many systems at once for a network
that is not running NIS, as all of the linux machines on my network can
fetch data from the database and add the users as necessary.
I don't, however, trust the security of this implementation, and only use it
on our internal network that sits behind a firewall. I'd recommend that
you take the same precaution.
-jm
-----Original Message-----
From: Sebastien Roy [mailto:sroy@galeasec.com]
Sent: Thursday, March 29, 2001 1:28 PM
To: Brandon Orther
Cc: PHP User Group
Subject: Re: [PHP] Giving my script the power!
Hi,
I'm doing the exact same thing as you and I got the exact same problem.
After
getting almost crazy with trying everything possible to run a script as
root,
someone told me that I'm limited to the server permission. So I decided to
simply create a java deamon wich run as root. This deamon wait on a port for
commands (encrypted) to be executed.via fsockopen(...). Surprisly, it was
easy and it work prety well...
Hope it helps
Sebastien Roy
sroy@galeasec.com
Brandon Orther wrote:
> Hello,
>
> I am trying to make a script that can add users and multiple things to a
> linux box. I have all teh programming issues solved except I need to make
> this script root, or make it able to run anyhting it want to. Is there a
> way to make my php script liek a super user?
>
> INFO: Redhat 7 Apache1.?
>
> Thanks
> Brandon Orther
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net