Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Nov 2006
    Posts
    23

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

    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. #2
    cPanel Staff cPanelMatt's Avatar
    Join Date
    Apr 2005
    Location
    Houston, TX
    Posts
    409

    Default

    I have a document written on this that's under going editing currently, I'll let you know when it's publicly available.
    Matt Dees
    Integration Developer
    cPanel, Inc.
    cPanel Integration Blog

  3. #3
    Member
    Join Date
    Nov 2006
    Posts
    23

    Default

    Thank you Do you know when this might be available?

  4. #4
    Member
    Join Date
    Nov 2006
    Posts
    23

    Default

    Is there any update on this?

  5. #5
    Integration Developer cPanelDavidN's Avatar
    Join Date
    Dec 2009
    Location
    Houston, TX
    Posts
    525

    Default

    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
    David Neimeyer
    Integration Developer

    sdk.cpanel.net
    APIs: XML-API API1 & API2
    Check Out: Developer Downloads Integration Blog
    Need Support? Support Ticket Developer Forum Feature Request

Similar Threads & Tags
Similar threads

  1. Replies: 0
    Last Post: 09-24-2010, 02:33 AM
  2. Cpanel API support for executing arbitrary MySQL queries
    By RSimoes in forum cPanel Developers
    Replies: 0
    Last Post: 02-03-2010, 07:04 PM
  3. Shell commands in PHP - no security?
    By Sindre in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 10-22-2008, 07:36 PM
  4. PHP script not executing after updating WHM
    By Senor in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 09-24-2008, 01:42 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube