首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何使用脚本创建多个cPanel帐户

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

Stack Overflow用户
提问于 2016-07-20 10:47:44
回答 1查看 232关注 0票数 0

我想具体说明以下几点:

域名-用户名

如有任何建议,将不胜感激。

这是我的剧本:

!/bin/bash

创建一个包含域名、用户名和密码的文件(/root/test1 1)。

代码语言:javascript
复制
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
EN

回答 1

Stack Overflow用户

发布于 2016-07-22 12:53:10

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

代码语言:javascript
复制
/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.
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/38479156

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档