Koozali.org: home of the SME Server

script shell access to the server

Offline GPete

  • *
  • 38
  • +0/-0
    • http://aaahomebase.com
script shell access to the server
« on: October 24, 2007, 03:12:26 PM »
I found on another forum:

The thing I did that made everything work was give the domain that was running the Dolphin/Ray script shell access to the server.   That is because Apache is running in a chrooted environment.
The reason for the above is the "exec" function that is used in the script.  Depending on how your server is set up you will need to give the script permission to do it's job.


In this forum I found:
CharlieBrady
Development Team
    
Re: root permission in php code like server-manager
« Reply #1 on: December 16, 2005, 11:09:55 AM »

It's not possible, because PHP code runs within the web server process, not as an external program the way that perl scripts do. The perl scripts can be setuid, to change id when they are executed - PHP scripts cannot be.

Perl also has a very important "taint detection" feature which helps to prevent you from making security mistakes in the code. PHP doesn't have such a feature.



Is this my answer, or is root permission more than I need? I have Dolphin running from /opt/dolphin.

Thanks for all
  GP