Command Line Vmware

Discussion in 'General' started by ivomendonca, Jan 8, 2010.

  1. ivomendonca

    ivomendonca Banned

    Hello, Does anywone knows, if is possible to execute a command line (as root) from my website, using exec from a separate area in my site ?

    My idea is to create php.ini inside a folder and all classes in that folder have root access, But the rest of the website continues using normal apache user.

    Is that possible?
    Or is better (Secure) to use php-ssh2 to comunicate from my site as root.

    Thanks.
     
  2. falko

    falko Super Moderator Howtoforge Staff

    That sounds highly unsecure, but I think this is possible with sudo - you must give the Apache user sudo privileges.
     

Share This Page