Microsoft KB Archive/242133

{|
 * width="100%"|

-

The information in this article applies to:


 * Microsoft Windows NT Server version 4.0

-

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.

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 Is or Is -a command will not see the 'hidden' vroot in the list. However, all commands involving the vroot, such as 'cd hidden', '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.

To use NTFS file system permissions to hide an FTP folder, follow these steps:

In Windows NT Explorer, click the folder you want to hide.

Remove the Everyone group with Full Control:

 Right-click the folder you want, click Properties, click the Security tab, and then click Permissions. In the Name list, click Everyone, and then click Remove.

Add the Administrator group with Full Control:

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

Specify file permissions for the anonymous user:

 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' message. The user cannot view a list of the files in the folder, but can still retrieve a file by a specific name. Additional query words: file transfer

Keywords         : Version          : winnt:4.0 Platform         : winnt Issue type       : kbinfo
 * }