The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Executing shell commands/a PHP script with root permissions using the cPanel API?

Discussion in 'cPanel Developers' started by Kadence, Sep 24, 2010.

  1. Kadence

    Kadence Member

    Joined:
    Nov 25, 2006
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    I'd like to run shell commands on a remote computer with root permissions. So that I can for instance run commands like 'chown'. Is there any way to do this using authentication via cpanel? Either by directly sending shell commands as root somehow, or running a PHP script that calls the shell commands with root permissions?
     
  2. MattDees

    MattDees cPanel Product Owner
    Staff Member

    Joined:
    Apr 29, 2005
    Messages:
    417
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    I have a document written on this that's under going editing currently, I'll let you know when it's publicly available.
     
  3. Kadence

    Kadence Member

    Joined:
    Nov 25, 2006
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    Thank you :) Do you know when this might be available?
     
  4. Kadence

    Kadence Member

    Joined:
    Nov 25, 2006
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    Is there any update on this?
     
  5. cPanelDavidN

    cPanelDavidN Integration Developer
    Staff Member

    Joined:
    Dec 17, 2009
    Messages:
    571
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Hi Kadence,

    Matt has been extremely busy lately. He's taken responsibility for some development work that was escalated in our product planning. So my muchacho has been unable to put the final touches on his much anticipated blog/forum post about privilege escalation (within APIs). That said, I know it's nearly done because he presented some of the information at our annual conference this past week.

    So, I know it's coming:)

    Thanks for the patience,
    -DavidN
     
Loading...

Share This Page