LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Auto create user, mysql and ftp (https://www.linuxquestions.org/questions/linux-general-1/auto-create-user-mysql-and-ftp-312413/)

haze 04-12-2005 09:49 AM

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:
User
adduser

mysql part
--------------
create mysql database 'abc'
grant all on abc.* to abc@localhost identified by 'abc123'

ftp
???

email
????

Any suggestions appreciated.

Crashed_Again 04-12-2005 10:10 AM

This thread has some good discussion about creating a script to make new users.

Creating the ftp and mail accounts depend on what services you are using.


All times are GMT -5. The time now is 06:22 PM.