如何使用脚本创建多个cPanel帐户

时间:2016-07-20 10:47:45

标签: cpanel accounts

我想指出这些事情:

  

域名|用户名|密码|联系电子邮件|包裹| IP地址

任何建议都将受到赞赏。

这是我的脚本:

  

! /斌/庆典

制作一个包含域名,用户名和密码的文件(/ root / test1)。

for i in cat /root/test1 do domain=echo $i | cut -f1 -d: un=echo $i | cut -f2 -d: pw=echo $i | cut -f3 -d: /scripts/wwwacct $domain $un $pw 0 done

1 个答案:

答案 0 :(得分:0)

尝试在脚本中使用以下命令。

/scripts/wwwacct domain.com newuser password 0 x3 n n n  0 0 0 0 0 0

The above creates a new account with the domain called domain.com
It sets their username to new user
It sets their pasword to password
Quota is unlimited
Theme is x3
Dedicated IP is not assigned
CGI is turned off
FrontPage is turned off
Maxftp is unlimted
The number of databases is unlimited
The number of email accounts they can create is unlimited
The amount of mailing lists is unlimited
The number of subdomains is unlimited
Bandwidth is unlimited.