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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

You do not have the required privileges plugin error

Discussion in 'cPanel Developers' started by shazde, Mar 22, 2018.

  1. shazde

    shazde Member

    Joined:
    May 19, 2014
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi,

    We just installed a new cPanel server and one of our plugins that works with DNS returns the following error:

    "[xml-api] Permission denied: You do not have the required privileges to run “dumpzone”. [dumpzone] version [1]."

    Has something changed that introduces this error?

    How can we give proper permission to our resellers to avoid this error?

    Here is the important sections of the plugin config file:

    # Service that will serve this app
    service=whostmgr

    # System user to run process as
    user=root

    # ACLs
    acls=list-accts,manage-dns-records

    Isn't the root user supposed to have all the permissions?
     
    #1 shazde, Mar 22, 2018
    Last edited by a moderator: Apr 10, 2018
  2. shazde

    shazde Member

    Joined:
    May 19, 2014
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I need to provide a little bit more info that hopefully can help.

    The API 1 calls are based on the logged in reseller (whm) username and accesshash. Up to version 66 it seems that reseller users had the permission to make dumpzone calls but that permission is somehow now removed in 68.
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    42,734
    Likes Received:
    1,706
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Can you verify what privileges you've assigned to this reseller? You can see this information in the following file:

    /var/cpanel/resellers

    Additionally, can you verify the specific steps you took to setup and install the plugin?

    Thank you.
     
  4. shazde

    shazde Member

    Joined:
    May 19, 2014
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Here is the list of privileges:
    add-pkg,allow-unlimited-bw-pkgs,allow-unlimited-pkgs,create-acct,create-dns,disallow-shell,edit-dns,edit-mx,edit-pkg,kill-acct,kill-dns,list-accts,park-dns,passwd,resftp,show-bandwidth,suspend-acct,upgrade-account,viewglobalpackages

    I can confirm that the same plugin works on all our other whm servers but they are all on version 64 and lower while this one is on 68.

    Plugin is already registered successfully.
     
  5. shazde

    shazde Member

    Joined:
    May 19, 2014
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    For the workaround we now make all our api calls as root user.
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    42,734
    Likes Received:
    1,706
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page