Skip to main content

Create multiple domain accounts with bash script

Comments

3 comments

  • Barrie Peterson
    Here is the output from the script, I forgot too add it. Output from script:
    root@server [~]# ./test1 +===================================+ | New Account Info | +===================================+ | Domain: domain.1 | UserName: domain.1 | PassWord: domain.1 +===================================+ This ok? yes Checking input data......Done Validating system setup......Done Rebuilding IP Pool......Done Validating IP......Done Validating Username...(XID 27yssf) "domain.1" is not a valid username on this system. +===================================+ | New Account Info | +===================================+ | Domain: vname1 | UserName: vname1 | PassWord: vname1 +===================================+ This ok? no Exiting on request!
    0
  • Znuff
    echo "domain.1" | sed -e 's/\.//'
    0
  • cPanelMichael
    Hello, Is it necessary to store actual usernames and passwords in a text file on the system in plaintext? You may want to consider developing a script that randomly generates the username/password for an account rather than using one from a list, as an added security precaution. Thank you.
    0

Please sign in to leave a comment.