Microsoft Knowledge Base Email Alertz

When you use your FTP client, you are unable to see virtual directories created in Internet Server Manager for the FTP service even though you have permissions to access the directory. However, if you issue the cd command with the correct name to the virtual directory or ls or dir of the virtual

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 142853 - Last Review: July 7, 2008 - Revision: 4.2

Virtual Directories Not Visible on FTP Clients

This article was previously published under Q142853
We strongly recommend that all users upgrade to Microsoft Internet Information Services (IIS) version 7.0 running on Microsoft Windows Server 2008. IIS 7.0 significantly increases Web infrastructure security. For more information about IIS security-related topics, visit the following Microsoft Web site:
http://www.microsoft.com/technet/security/prodtech/IIS.mspx (http://www.microsoft.com/technet/security/prodtech/IIS.mspx)
For more information about IIS 7.0, visit the following Microsoft Web site:
http://www.iis.net/default.aspx?tabid=1 (http://www.iis.net/default.aspx?tabid=1)

On This Page

SYMPTOMS

When you use your FTP client, you are unable to see virtual directories created in Internet Server Manager for the FTP service even though you have permissions to access the directory.

However, if you issue the "cd" command with the correct name to the virtual directory or "ls" or "dir" of the virtual directory, the contents are listed (provided sufficient permissions exist for the user/anonymous user).

CAUSE

This behavior is by design. The ability to hide these directories is a security option in the FTP server configuration.

WORKAROUND

A work around is to create a physical directory with the same name in the location of the virtual directory so the FTP client can see the name.

/ --> c:\inetpub\ftproot
/sample --> d:\ftpvdir

If you create the directory c:\inetpub\ftproot\sample, the FTP client will see that directory in directory listings. The FTP client will only be able to see/retrieve files located in d:\ftpvdir. If any files are placed in c:\inetpub\ftproot\sample, the FTP client will not see them or be able to retrieve them.

You can also create a virtual directory for the FTP service from the Directories tab in the FTP Service Properties by choosing Add. Select the directory and type in an alias. The virtual directory alias is used to change to the directory.

The way you change to the directory varies slightly depending on if you use a web browser or standard FTP client to access the FTP server.

From a WWW Browser

Include the virtual directory name in the URL:
ftp://myftpserver/mydirectory/

From a Standard FTP Client

Even though the directories can not be seen, you can explicitly "cd" to the virtual directory name. For example:
   cd /mydirectory
				

The forward slash is necessary, otherwise "cd" tries to change directory from within the current directory the client is in.

APPLIES TO
  • Microsoft Internet Information Services 6.0
  • Microsoft Internet Information Server 1.0
  • Microsoft Internet Information Server 2.0
  • Microsoft Internet Information Server 3.0
  • Microsoft Internet Information Server 4.0
  • Microsoft Internet Information Services 5.0
  • Microsoft Internet Information Services 7.0
Keywords: 
kbusage KB142853
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate