Part 1: Create a basic FTP site
- Create a new user for the FTP site
- Open Server Manager
- Go to Configuration > Local Users and Groups > User
- From the Actions pane select More Actions > New User...
- Enter the username and password that you want to use for this FTP site
- Uncheck – User must change password at next logon
- Check – User cannot change password
- Check – Password never expires
- Click Create and then the Close button.
- Open the user properties of the user you created above (double-click or right-click > Properties on the username in Server Manager)
- Go to the Remote Desktop Services Profile tab
- Check – Deny this user permissions to log on to Remote Desktop Session Host server
- Click OK
- Close Server Manager
- Launch Internet Information Services (IIS) Manager. This is found by clicking the “Start button” > Administrative Tools > Internet Information Services (IIS) Manager.
- Expand the tree view (left pane in IIS Manager) under the Connections pane—click the ‘+’ next to the server name—and select Sites.
- From the Actions pane select “Add FTP Site…”
- Complete the Add FTP Site wizard.
- FTP site name: The name you wish to give this FTP site
- Physical path: The location of your site or where you want the FTP site files to go
- Click Next
- Set the IP address that you want to use for FTP
- Select Allow SSL
- Choose the self-signed, server generated certificate from the SSL Certificate: drop-down list
- Click Next
- Check Basic authentication
- Change the Allow access to: drop-down to Specified users
- Enter the name of the user that you previously created in the text area below the drop-down list
- Check Read and Write from Permissions
- Click Finish
- You should now see the name of your FTP site under the main Sites pane
- Double-click on the FTP site that you setup from the main pane,
or expand Sites from the tree view and select the FTP site that you
setup
- Check folder permissions on the folder that you pointed the FTP site to
- Click Edit Permissions… under the Actions pane
- Click Security tab
- Make sure the user that you created above has modify rights to the folder
- At this point FTP is setup and working using the most basic configuration.
Part 2: User Isolation
Note: There are five types of FTP User Isolation that IIS7.x supports.
In
this KB article we will only cover two: “FTP Root Directory” which is
the basic, default option and “User name directory (disable global
virtual directories)” which is used for user isolation.
If you would like information on all five types of FTP User Isolation you can look here:
http://learn.iis.net/page.aspx/305/configuring-ftp-75-user-isolation/#002
- With the FTP site that you created above selected in the IIS Manager, launch the FTP User Isolation module by clicking on the FTP User Isolation icon
- Change the isolation method from “FTP root directory” to “User name directory (disable global virtual directories)”
- Click Apply under the Actions pane.
- Go back to the root of your FTP Site.
- Create a virtual directory named LocalUser.
Note 1: This is one of the rare cases where Windows requires case-sensitivity. The virtual directory name must be LocalUser, with the capital “L” and “U”, or FTP user isolation will fail.
Note 2: The LocalUser folder only works for server level (local) usernames. Domain level usernames are covered in later steps.
- Right-click on Test FTP Site from the tree view and select Add Virtual Directory…
- Alias: LocalUser (case-sensitive!)
- Physical path: C:\inetpub\ftproot
- Click OK
- Now create a second virtual directory (vdir) under the LocalUser vdir.
- Right-click on LocalUser from the tree view and select Add Virtual Directory…
- Alias: Use the name of the user that you created above for FTP
- Physical path: The actual path to where you want this user to be directed to
- Click OK
- Select the vdir in step 6 above from the tree view then Edit Permissions… from the Actions pane.
- Under the Security tab, give your FTP user “Modify” permissions to the folder then OK out of everything.
For a domain user, follow the steps below:
- In IIS Manager, create a new vdir under the root of your FTP Site named OW.
Note 1: When setting up user isolation for domain user names you must create a vdir using the domain’s nickname. This directory acts in the same way LocalUser does but for domain level users.
Note 2: An Active Directory domain has two names: the domain name and the nickname. The
nickname is actually the “pre-Windows 2000 domain name” from when the
domain names did not use a DNS/LDAP like naming structure.
The post-Windows 2000 domain names are like an internet domain name, like orcsweb.com. The pre-Windows 2000 domain name, or nickname, is just a single word with hostname like attributes. In OrcsWeb’s case the nickname is OW, and the domain name is orcsweb.com.
- Right-click on your FTP Site from the tree view and select Add Virtual Directory…
- Alias: OW (all upper case)
- Physical path: C:\inetpub\ftproot
- Click OK
- Now create a second and third virtual directory (vdir) under the OW vdir.
- Right-click on the OW vdir from the tree view and select Add Virtual Directory…
- Alias: <your domain user name> (without the OW\ in front if it)
- Physical path: The path to your site
- Click OK
- Repeat for any other users as needed.
- Add the user to the NTFS permission on disk for the folders that you pointed the FTP users to
- Authorize the domain users in FTP.
- In IIS Manager, select your FTP Site and then the FTP Authorization Rules module
- Here is where you can authorize users to access the FTP site. There are a couple of options you can choose: 1. Add the individual users or groups, 2. Allow all authenticated users. By default we add individual users or a user group when setting up isolated users.
- Add any domains users to the existing rule (if there are any - or create a new one).
- Select the rule then Edit from the Actions pane
- After existing user enter a comma-space (“, “) then OW\ and the Active Directory user name.
- Click OK
No comments:
Post a Comment