Automate User Creation using Shell Scripting
- Script should be executed with root user else exit with status 1 and error message.
- Script will take 1st argument as user and rest will be treated as comment.
- Auto generate password for the user.
- Upon successful execution of script, Display the following output:
- username: (username)
- password: (Auto-generated-password)
- host: (Your-Host-Machine-Details)