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

    Joined:
    Mar 10, 2015
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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

    Joined:
    Apr 11, 2011
    Messages:
    45,400
    Likes Received:
    1,953
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

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