Auto create user, mysql and ftp
I could a write a bash script that would create a new user and at the same time
- create a MySQL database based on the username / password
- create an FTP account
- create an email account
then send a mail to the user that the account had been set up.
For example: User: abc password: abc123
Manually this would be:
create mysql database 'abc'
grant all on abc.* to abc@localhost identified by 'abc123'
Any suggestions appreciated.