I'm trying to integrate my application with IIS FTP, and I noticed I will need to create a user account on that machine using code.
Does anyone have any suggestions?
I'd also need to be able to set Member permissions, etc.
Printable View
I'm trying to integrate my application with IIS FTP, and I noticed I will need to create a user account on that machine using code.
Does anyone have any suggestions?
I'd also need to be able to set Member permissions, etc.
I don't know how to do it in VB code, but you could try to execute a batch file or command line commands. You could execute these commands in the shell...
the "net user" command lets you add a user and then "net localgroup" lets you change the user groups they are located in.
For instance:
I'm sure there is a way to do it in VB.net, but i'm not quite sure how...Code:'Adds the user "jeff"
net user jeff /add
'Adds the user "jeff" to the group "administrators"
net localgroup administrators jeff /add
That works, what about setting folder permissions?
Also, how would I go about creating an FTP site on IIS 6.0 (Windows Server 2003)?
You can use another command for folder permissions called "cacls"
Example:
As far as configuring an FTP server.. check out this site here:Code:'this will give the user "jeff" full control of the folder
cacls C:\path\to\dir /G jeff:F
http://www.windowsnetworking.com/art...uring-FTP.html
Well, I know how to configure FTP normally, I mean through code.