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!

WHM API1 createacc function passes password in command line

Discussion in 'cPanel Developers' started by babbler, Apr 24, 2016.

  1. babbler

    babbler Member

    Mar 10, 2015
    Likes Received:
    Trophy Points:
    New Zealand
    cPanel Access Level:
    Root Administrator
    We are playing with whm api1 to create cpanel accounts via the command line and it works great but one of our developers has expressed concern that as the password is passed in the command line it becomes visible to other users via the process list and can therefore be compromised.
    I know there are various ways to restrict a user to viewing only their own processes but I'm not sure which is the best method.
    A better method might be to not include the password in the command line at all but generate it during the account creation process but I believe that this is not an option.
    Your thoughts would be much appreciated.
    Running Centos 6.7 and WHM 54
    Many thanks.
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice