2016-07-20 6 views
0

を使用して倍数cPanelのアカウントを作成する方法:私はこれらの事を指定したいスクリプト

ドメイン|ユーザー名|パスワード|お問い合わせメール|パッケージ| IPアドレス

を何かアドバイスをいただければ幸いです。

!/binに/ bashの

ファイル(/ルート/ 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 

答えて

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. 
関連する問題