Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do you create an ftp user via the command line?

Status
Not open for further replies.

rikstick

Programmer
Nov 20, 2007
5
US
Scenario:
I have written a C++ program that randomly generates passwords. It then takes a name such as John Doe and writes a line such as ,"jdoe,*rT#*v{he" the second part being the password. It then writes a batch file that does this:
"net user jdoe rT#*v{he /add" This creates an user account with default properties. I would like this script to go one step further and create an ftp user on an IIS 6.0 server.

Any suggestions will be greatly appreciated.

Thanks
 
As far as i know there is no separate FTP account. Any OS account you create can be used as an FTP account.
 
Thanks for your reply. I have figured out my problem. The problems was the user did not have a separate folder in the ftproot folder. I wrote a script to create X number of user accounts based on a text file of names and then create folders for each user with proper permission in the ftproot folder and then the script creates a webpage with X number of links to click. When I click on a link, it emails the user name and password to the user.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top