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:[EMAIL PROTECTED]]
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
[EMAIL PROTECTED]
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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]