Results 1 to 5 of 5

Thread: [2005] Create local account

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2005
    Location
    Alaska
    Posts
    435

    [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.

  2. #2
    Frenzied Member SomethinCool's Avatar
    Join Date
    Jan 2001
    Location
    Malvern, PA
    Posts
    1,407

    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...

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2005
    Location
    Alaska
    Posts
    435

    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)?

  4. #4
    Frenzied Member SomethinCool's Avatar
    Join Date
    Jan 2001
    Location
    Malvern, PA
    Posts
    1,407

    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

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2005
    Location
    Alaska
    Posts
    435

    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
  •  



Click Here to Expand Forum to Full Width