Microsoft KB Archive/245048

= How to: Hide FTP Directories =

Article ID: 245048

Article Last Modified on 11/1/2006

-

APPLIES TO


 * Microsoft Windows NT Server 4.0 Standard Edition
 * Microsoft Internet Information Server 4.0

-



This article was previously published under Q245048



SUMMARY
This article describes two ways to hide File Transfer Protocol (FTP) folders.



MORE INFORMATION
To hide FTP folders, you can either create a virtual root folder (vroot) using Microsoft Internet Information Server (IIS) or adjust the NTFS file system permissions on the folder and its contents.

NOTE: The vroot on an FTP server must point to a folder that is not a subfolder of the home vroot folder.

To create a vroot folder in IIS, follow these steps:  Open Microsoft Management Console. Right-click the folder where you want to create the vroot folder. Click New, and then click Virtual Directory. In the New Virtual Directory Wizard, follow these steps:  Type the name or the alias of the vroot, and then click Next. Type the path of the folder that has the content you want to publish, or click Browse to browse to the folder, and then click Next.</ol> </li> Click to select the appropriate check boxes to set access permissions for the virtual folder, and then click Finish.

NOTE: A user who logs on to the server using FTP and uses the ls or ls -a command will not see the hidden vroot in the list. However, all commands involving the vroot (for example, cd hidden or get hidden/ ) will still work. Also, if the user gains access to the hidden vroot, the user will be able to see all the files in the vroot, unless certain NTFS file system permissions are set to prevent the user from viewing all the files.</li></ol>

To use NTFS file system permissions to hide an FTP folder, follow these steps: <ol> In Windows NT Explorer, click the folder you want to hide.</li> Remove the Everyone group with Full Control: <ol style="list-style-type: lower-alpha;"> Right-click the folder you want, click Properties, click the Security tab, and then click Permissions.</li> In the Name list, click Everyone, and then click Remove.</li></ol> </li> Add the Administrator group with Full Control: <ol style="list-style-type: lower-alpha;"> Click Add.</li> In the Name list, click the Administrator group, and then click Add.</li> In the Type Of Access box, click Full Control, and then click OK.</li></ol> </li> Specify file permissions for the anonymous user:

<ol style="list-style-type: lower-alpha;"> Click Permissions, and then in the Name list, click Anonymous User.</li> In the Type Of Access box, click Special Directory Access.</li> In the Special Directory Access dialog box, click Other, but do not click to select any of the check boxes.</li></ol>

NOTE: An anonymous FTP user who tries to gain access to this folder receives an "Access Denied" error message. The user cannot view a list of the files in the folder, but can still retrieve a file by a specific name.</li></ol>

Additional query words: file transfer

Keywords: kbinfo KB245048

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.