Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

user to run system()

Discussion in 'General Discussion' started by eridanus, Jan 10, 2007.

  1. eridanus

    eridanus Registered

    Joined:
    Dec 7, 2006
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    151
    Hello, I have a website that needs to run the php system() command (linux shell command), i realized that this command is executed by the user nobody, in the httpd.conf is:

    ...

    User nobody
    Group nobody
    ...

    ok...but....

    in this specific virtual host is

    <VirtualHost x.x.x.x x.x.x.x>
    ServerAlias somedomain.com
    ServerAdmin webmaster@somedomain.com
    DocumentRoot /home/somedomain/public_html
    BytesLog domlogs/somedomain.com-bytes_log
    User somedomain
    Group somedomain
    ServerName www.somedomain.com



    I want the command to be executed by the user somedomain, is this possible???

    Thanks
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,460
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    Go on, have a guess
    Only if you recompile php/apache with phpsuexec support.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice