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.

Cannot run upapi or cpapi2 commands as reseller

Discussion in 'cPanel Developers' started by BlueSteam, May 12, 2016.

  1. BlueSteam

    BlueSteam Well-Known Member

    Joined:
    Feb 21, 2013
    Messages:
    53
    Likes Received:
    2
    Trophy Points:
    8
    cPanel Access Level:
    Reseller Owner
    Hello,

    Every time I run any command from the shell command line as a reseller I get the following error:

    I'm not sure what is wrong or what I am doing wrong. Any help would be appreciated.

    Thanks
    Brett
     
  2. cPTerrance

    cPTerrance *nix Technical Analyst II / Migrations Specialist
    Staff Member

    Joined:
    Jul 9, 2015
    Messages:
    72
    Likes Received:
    8
    Trophy Points:
    8
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    These commands are only meant to be ran as root. If you need to use the API as a reseller, you will need to generate a accesskey and call it manually.

    Edit to better clarify:

    You can run cpapi2/uapi2 as a user however, you can only specify --user= as root.
     
    #2 cPTerrance, May 13, 2016
    Last edited: May 13, 2016
  3. BlueSteam

    BlueSteam Well-Known Member

    Joined:
    Feb 21, 2013
    Messages:
    53
    Likes Received:
    2
    Trophy Points:
    8
    cPanel Access Level:
    Reseller Owner
    Thanks Terrance. I appreciate the reply. I thought i read somewhere that the api was able t be run by root and resellers. but if this is the way then I'll do that. :)
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page