uid and guid during account creation

izghitu

Well-Known Member
Aug 9, 2006
62
2
158
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:
[email protected] [~]# /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
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
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.
 

izghitu

Well-Known Member
Aug 9, 2006
62
2
158
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?