Results 1 to 2 of 2
Hi,
I have an PHP page that I would like to call a Perl script from within. The script is on the webserver but it requires root permission to run ...
- 10-03-2007 #1Just Joined!
- Join Date
- Sep 2007
- Posts
- 4
Perl from PHP page
Hi,
I have an PHP page that I would like to call a Perl script from within. The script is on the webserver but it requires root permission to run properly. Is there any easy command to do this?
Thanks.
- 10-03-2007 #2
There are two possibilities here:
1) The script is root, but doesn't need to be. In this case, change the permissions.
2) The script is root, and _does_ need to be. In which case, your webserver doesn't need to be running it.
The problem here is that the only way for you to run a root-controlled script would be to actually have your webserver operate as the root user, which is a TERRIBLE, TERRIBLE idea. Your webserver should have the lowest permissions possibly. Remember, this server can be accessed by anyone, anywhere, without your knowledge. You do not want to give it access to your system.
What does this script do? What sort of information do you need?DISTRO=Arch
Registered Linux User #388732


Reply With Quote