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.

uid and guid during account creation

Discussion in 'General Discussion' started by izghitu, Feb 10, 2013.

  1. izghitu

    izghitu Well-Known Member

    Joined:
    Aug 9, 2006
    Messages:
    45
    Likes Received:
    0
    Trophy Points:
    6
    Hi,

    According to this:
    cPanel & WHM Change Log Feed

    Implemented case 60437: Add the ability to pass a uid,gid, and homedir for new accounts.

    I should be able to specify the uid and gid of the account I am going to create

    However I do not see this using command line:
    root@cpanel [~]# /scripts/createacct --help
    Please use the following syntax:
    wwwacct <domain> <user> <pass> <quota> <cpmod[advanced/?]> <ip[y/n]> <cgi[y/n]> <frontpage[y/n]> <maxftp> <maxsql> <maxpop> <maxlst> <maxsub> <bwlimit> <hasshell[y]/[n]> <owner> <plan> <maxpark> <maxaddon> <featurelist> <contactemail> <use_registered_nameservers> <language>


    Can you please tell me how does it work and how do I specify the uid and gid of the account I am going to create?

    Thanks
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    671
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    The ability to pass these strings is only available through the use of our XML and JSON APIs. This is documented at:

    XML and JSON APIs - Create Account

    You will not be able to pass those strings directly with "/scripts/createacct".

    Thank you.
     
  3. izghitu

    izghitu Well-Known Member

    Joined:
    Aug 9, 2006
    Messages:
    45
    Likes Received:
    0
    Trophy Points:
    6
    Thanks

    But why wasn't this implemented in /scripts/createacct and whm? I need this to automate the user creation on a mirror server for load balancing purposes so I now need a workaround

    Is it possible to have this functionality added in a future cpanel release?
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

Share This Page