Find the answer to your Linux question:
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 ...
  1. #1
    Just 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.

  2. #2
    Trusted Penguin Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,230
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...