LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-12-2005, 09:49 AM   #1
haze
LQ Newbie
 
Registered: Feb 2004
Posts: 16

Rep: Reputation: 0
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.
 
Old 04-12-2005, 10:10 AM   #2
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
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.

Last edited by Crashed_Again; 04-12-2005 at 10:12 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I create a admin user for FTP? dwz3591 Linux From Scratch 1 07-03-2005 06:47 AM
Mysql how to create user? fturcic Linux - Software 1 01-31-2005 11:23 PM
Using WS-FTP, valid user can't go into folders they create krzykard Linux - Networking 0 02-03-2004 11:00 AM
Thru WS-FTP, valid user can't go into folders they create krzykard Linux - Software 2 11-12-2003 05:44 PM
mysql cannot create a user nocturnal Linux - Software 1 07-05-2003 10:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration