Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Dec 2008
    Posts
    153

    Default myprivs query

    So I am making a script, the first step is to see what privs the user has, as in reseller or root...

    I run a pretty basic query...
    PHP Code:
    $str $xmlapi-> xmlapi_query('myprivs');
    echo 
    $str
    When ran as root, it works fine, all is 0 except for all, which is 1.

    When ran as a reseller, it just times out... any idea?

    EDIT:
    Damn near all API queries hang as a reseller..
    List accounts
    list suspended
    list accts over quota
    restarting services

    Any idea why these wont work? The reseller has rights to them..

  2. #2
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by jhyland87 View Post
    So I am making a script, the first step is to see what privs the user has, as in reseller or root...

    I run a pretty basic query...
    PHP Code:
    $str $xmlapi-> xmlapi_query('myprivs');
    echo 
    $str
    When ran as root, it works fine, all is 0 except for all, which is 1.

    When ran as a reseller, it just times out... any idea?

    EDIT:
    Damn near all API queries hang as a reseller..
    List accounts
    list suspended
    list accts over quota
    restarting services

    Any idea why these wont work? The reseller has rights to them..
    Add the following line of code above your xmlapi_query line:

    PHP Code:
    $xmlapi->set_debug(1); 
    Then paste the output (full source code) of the function. Please redact any passwords if any appear in the output.

Similar Threads & Tags
Similar threads

  1. DocumentRoot query
    By martyf in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 10-19-2010, 12:09 AM
  2. Search Query
    By Hafiz in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 05-06-2010, 03:55 PM
  3. Logwatch query
    By Mat-d-rat in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 08-27-2008, 03:32 PM
  4. webalizer query
    By anup123 in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 11-05-2005, 02:55 AM
  5. branding query
    By anup123 in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 05-14-2005, 08:25 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube