Tuesday, January 7, 2014

Create ftp and Sftp server account in Windows Server 2003 using built-in IIS service



Using  Windows Server 2003  built-in IIS service, we can create ftp and sftp server account without using external ftp server software such as FileZilla server.

A) Below  is to create  ftp account  via IIS manager in Windows 2003

1. Create FTP User
 Start -> Administrator Tools->Computer Management->Local Users and Groups->Users
or in active directory
Start -> Administrator Tools->Active Directory Users and computer->Users->New User (right click mouse)

2.  Create FTP Virtual Directory

    Start -> Administrator Tools->Internet Information Service (IIS) Manager
  ->FTP Sites > new virtual directory (right click  mouse)
  Enter "Alias" name, put it as exactly the same as the username you have just created and click Next, Browse to the directory where you wish to allow this FTP user to access to. Click Next, enable "Read" and "Write" privileges. Click Finish


3 .Create Permissions on FTP Folder

 Right click on your FTP folder and add the FTP user you have just created above to this folder.
Enable full permissions or any permission set you wish to create.

B)  Below  is to create  sftp account  via IIS manager in Windows 2003

  Step 1) 2) 3) is the same as above in creating ftp account. for example I already created ftp account user name jiansen
Step 4) Download OpenSSH:
http://www.openssh.com/
for example in C:\Program Files\OpenSSH\
cd C:\Program Files\OpenSSH\bin
mkpasswd -l -u jiansen >> ..\etc\passwd
  (change jiansen to your ftp user name)
edit ..\etc\passwd, change /home/jiansen (change jiansen to your ftp user name) to your ftp directory such as /cygdrive/c/web_root
restart OpenSSH
Video:Create ftp and Sftp server account in Windows Server 2003 using built-in IIS service

Reference:
1. http://support.microsoft.com/kb/323384
2. https://www.serverintellect.com/support/ftp/manual-ftp-acct/
3. http://www.digitalmediaminute.com/article/1487/setting-up-a-sftp-server-on-windows



No comments:

Post a Comment