|
-
Jul 13th, 2007, 12:34 PM
#1
Thread Starter
Hyperactive Member
[2005] Create local account
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.
-
Jul 13th, 2007, 02:48 PM
#2
Frenzied Member
Re: [2005] Create local account
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:
Code:
'Adds the user "jeff"
net user jeff /add
'Adds the user "jeff" to the group "administrators"
net localgroup administrators jeff /add
I'm sure there is a way to do it in VB.net, but i'm not quite sure how...
-
Jul 13th, 2007, 03:29 PM
#3
Thread Starter
Hyperactive Member
Re: [2005] Create local account
That works, what about setting folder permissions?
Also, how would I go about creating an FTP site on IIS 6.0 (Windows Server 2003)?
-
Jul 13th, 2007, 04:53 PM
#4
Frenzied Member
Re: [2005] Create local account
You can use another command for folder permissions called "cacls"
Example:
Code:
'this will give the user "jeff" full control of the folder
cacls C:\path\to\dir /G jeff:F
As far as configuring an FTP server.. check out this site here:
http://www.windowsnetworking.com/art...uring-FTP.html
-
Jul 13th, 2007, 08:56 PM
#5
Thread Starter
Hyperactive Member
Re: [2005] Create local account
Well, I know how to configure FTP normally, I mean through code.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|