Old 7th September 2006, 17:47
pushparaj pushparaj is offline
Junior Member
Join Date: Sep 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Ftp User Creation Script

Hi all,

I need to automate the ftp user creation. Can any one help in this regard?

I want the shell script or php script which can read for the user names & password and the it has to add the user through
useradd command.

I am totally new to shell script.

Can anyone help in this regard?

Thanks in advance
Reply With Quote
Sponsored Links
Old 7th September 2006, 18:28
sjau sjau is offline
Local Meanie
Join Date: Apr 2006
Location: Switzerland
Posts: 1,158
Thanks: 4
Thanked 58 Times in 54 Posts

You can do it with PHP if know that... look at the exec function there.
Reply With Quote
Old 23rd September 2006, 04:32
Turophile Turophile is offline
Junior Member
Join Date: Sep 2006
Location: /dev/urandom
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts

Which ftp program is it? Does it only allow local users or can it use MySQL (or another database) as a backend? If it can use another database as a backend, PHP is quite simple and doesn't require exec. However, if it uses local users you might want to reconsider the program in use.
Reply With Quote
Old 26th September 2006, 09:18
pushparaj pushparaj is offline
Junior Member
Join Date: Sep 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts

It is using mysql as back end. It does not require local users.

Reply With Quote
Old 27th September 2006, 21:15
falko falko is offline
Super Moderator
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,752 Times in 2,582 Posts

Then you can write a simple PHP script that does it for you.
These links might be interesting for you: http://www.freewebmasterhelp.com/tutorials/phpmysql
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote


Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Statistic not working mzo Installation/Configuration 49 20th April 2011 13:19
USER INSERT/UPDATE SCRIPT with framework Jose Gosalbez Installation/Configuration 1 10th June 2006 21:12
Automatic user creation script with PHP and SOAP Jose Gosalbez Installation/Configuration 2 24th May 2006 19:11
massive user creation lino2k5 Installation/Configuration 7 24th April 2006 23:32
Mail user creation plucchetti Installation/Configuration 5 14th March 2006 23:28

All times are GMT +2. The time now is 10:52.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.