Lesson 3: Sharing Folders
You can share resources with others by sharing folders containing those resources. To share a folder, you must be a member of one of several groups, depending on the role of the computer where the shared folder resides. When you share a folder, you can control access to the folder by limiting the number of users who can simultaneously gain access to it, and you can also control access to the folder and its contents by assigning permissions to selected users and groups. Once you have shared a folder, users must connect to the shared folder and must have the appropriate permissions to gain access to it. After you have shared a folder, you might want to modify it. You can stop sharing it, change its share name, and change user and group permissions to gain access to it.
After this lesson, you will be able to
Create and modify shared folders.Make a connection to a shared folder.
Estimated lesson time: 20 minutes
Requirements for Sharing Folders
In Windows 2000 Professional, members of the built-in Administrators and Power Users groups are able to share folders. Which groups can share folders and on which machines they can share them depends on whether it is a workgroup or a domain and the type of computer on which the shared folders reside:
In a Windows 2000 domain, the Administrators and Server Operators groups can share folders residing on any machines in the domain. The Power Users group is a local group and can share folders residing only on the stand-alone server or computer running Windows 2000 Professional where the group is located.In a Windows 2000 workgroup, the Administrators and Power Users groups can share folders on the Windows 2000 Server stand-alone server or the computer running Windows 2000 Professional on which the group exists.
NOTEIf the folder to be shared resides on an NTFS volume, users must also have at least the Read permission for that folder to be able to share it.
Administrative Shared Folders
Windows 2000 automatically shares folders for administrative purposes. These shares are appended with a dollar sign ($), which hides the shared folder from users who browse the computer. The root of each volume, the system root folder, and the location of the printer drivers are all hidden shared folders that you can gain access to across the network.Table 15.2 describes the purpose of the administrative shared folders that
Windows 2000 automatically provides.Table 15.2 Windows 2000 Administrative Shared Folders
Share | Purpose |
---|---|
C$, D$, E$, and so on | The root of each volume on a hard disk is automatically shared, and the share name is the drive letter appended with a dollar sign ($). When you connect to this folder, you have access to the entire volume. You use the administrative shares to remotely connect to the computer to perform administrative tasks. Windows 2000 assigns the Full Control permission to the Administrators group. Windows 2000 also automatically shares CD-ROM drives and creates the share name by appending the dollar sign to the CD-ROM drive letter. |
Admin$ | The system root folder, which is C:\Winnt by default, is shared as Admin$. Administrators can gain access to this shared folder to administer Windows 2000 without knowing in which folder it is installed. Only members of the Administrators group have access to this share. Windows 2000 assigns the Full Control permission to the Administrators group. |
Print$ | When you install the first shared printer, the systemroot\ System32\Spool\Drivers folder is shared as Print$. This folder provides access to printer driver files for clients. Only members of the Administrators, Server Operators, and Print Operators groups have the Full Control permission. The Everyone group has the Read permission. |
Hidden shared folders aren't limited to those that the system automatically
creates. You can share additional folders and append a dollar sign to the end of the share name. Then only users who know the folder name can gain access to it if they also possess the proper permissions to it.
Sharing a Folder
When you share a folder, you can give it a share name, provide comments to
describe the folder and its content, limit the number of users who have access to the folder, assign permissions, and share the same folder multiple times.You can share a folder as follows:
Log on with a user account that is a member of a group that is able to share folders. Right-click the folder that you want to share, and then click Properties. On the Sharing tab of the Properties dialog box, configure the options shown in Figure 15.5 and described in Table 15.3.
Figure 15.5 The Sharing tab of a folder's Properties dialog box
Table 15.3 Sharing Tab Options
Option | Description |
---|---|
Share Name | The name that users from remote locations use to make a connection to the shared folder. You must enter a share name. |
Comment | An optional description for the share name. The comment appears in addition to the share name when users at client computers browse the server for shared folders. This comment can be used to identify contents of the shared folder. |
User Limit | The number of users who can concurrently connect to the shared folder. If you click Maximum Allowed as the user limit, Windows 2000 Professional supports up to 10 connections. Windows 2000 Server can support an unlimited number of connections, but the number of Client Access Licenses (CALs) that you purchased limits the connections. |
Permissions | The shared folder permissions that apply only when the folder is accessed over the network. By default, the Everyone group is assigned Full Control for all new shared folders. |
Caching | The settings to configure offline access to this shared folder. |
Caching
To make shared folders available offline, copies of the files are stored in a reserved portion of disk space on your computer called a cache. Since the cache is on
your hard disk, the computer can access this cache regardless of whether it is connected to the network. By default, the cache size is set to 10 percent of the available disk space. You can change the size of the cache on the Offline Files tab of the Folder Options dialog box. You can also see how much space the cache is using by opening the Offline Files folder and clicking Properties on the File menu.NOTEShared network files are stored in the root folder of your hard disk. If
you want to change the location of the cache, the Offline Files Mover (Cachemov.exe) is available in the Windows 2000 Professional Resource Kit
to change the cache location.When you share a folder, you can allow others to make the shared folder available offline by clicking Caching in the folder's Properties dialog box. In the Caching Settings dialog box (see Figure 15.6), the Allow Caching Of Files In This Shared Folder check box allows you to turn caching on and off.
Figure 15.6 The Caching Settings dialog box
The Caching Settings dialog box contains three caching options:
Manual Caching For Documents. The files that someone using your shared folder specifically (or manually) identifies are the only ones available offline. This caching option is recommended for a shared network folder containing files that are to be accessed and modified by several people. This option is the default.Automatic Caching For Documents. Makes every file that someone opens from your shared folder available to him or her offline. Files that aren't opened are not available offline.Automatic Caching For Programs. Provides offline access to shared folders containing files that
are read, referenced, or run, but that are not changed in the process. This setting reduces network
traffic because offline files are opened directly without accessing the network versions in any way,
and generally start and run faster than the network versions.
NOTEFor more information on caching and Offline Folders, see Chapter 24, "Configuring Windows 2000 for Mobile Computers."
Assigning Shared Folder Permissions
After you share a folder, the next step is to specify which users have access to the shared folder by assigning shared folder permissions to selected user accounts and groups.You can assign permissions to user accounts and groups for a shared folder, as follows:
On the Sharing tab of the Properties dialog box of the shared folder, click Permissions. In the Permissions dialog box, ensure that the Everyone group is selected and then click Remove. In the Permissions dialog box, click Add (see Figure 15.7).
Figure 15.7 Setting permissions for a shared folder
In the Select Users, Computers, Or Groups dialog box, click the user accounts and groups to which you want to assign permissions. Click Add to add the user account or group to the shared folder. Repeat this step for all user
accounts and groups to which you want to assign permissions. Click OK. In the Permissions dialog box for the shared folder, click the user account or group, and then, under Permissions, select the Allow check box or the Deny check box for the appropriate permissions for the user account or group.
Modifying Shared Folders
You can modify shared folders, stop sharing a folder, modify the share name, and modify shared folder permissions.You can modify a shared folder as follows:
Click the Sharing tab in the Properties dialog box of the shared folder. To complete the appropriate task, use the steps in Table 15.4.
Table 15.4 Steps to Modify a Shared Folder
To | Do this |
---|---|
Stop sharing a folder | Click Do Not Share This Folder. |
Modify the share name | Click Do Not Share This Folder to stop sharing the folder; click Apply to apply the change; click Share This Folder, and then enter the new share name in the Share Name box. |
Modify shared folder permissions | Click Permissions. In the Permissions dialog box, click Add or Remove. In the Select Users, Computers, Or Groups dialog box, click the user account or group whose permissions you want to modify. |
Share folder multiple times | Click New Share to share a folder with an additional shared folder name. Do so to consolidate multiple shared folders into one while allowing users to continue to use the same shared folder name that they used before you consolidated the folders. |
Remove a share name | Click Remove Share. This option appears only after the folder has been shared more than once. |
NOTEIf you stop sharing a folder while a user has a file open, the user might lose data. If you click Do Not Share This Folder and a user has a connection to the shared folder, Windows 2000 displays a dialog box notifying you that a user has a connection to the shared folder.
Connecting to a Shared Folder
You can gain access to a shared folder on another computer by using the Map Network Drive wizard, the Run command, or My Network Places. If you want to connect to a shared folder by using the Map Network Drive wizard, you can do the following:
Right-click the My Network Places icon on your desktop, and then click Map Network Drive. In the Map Network Drive wizard, shown in Figure 15.8, click Folder, and then type a UNC path to
the folder (for example, \\computer_name\sharedfolder_name). Enter a drive letter for the shared folder in the Drive list box. Select the Reconnect At Logon check box if you want to reconnect to the shared folder each time that you log on. Click the link labeled Connect Using A Different User Name to connect to a shared folder with a different user account, and then enter the user name and password in the Connect As dialog box.
You can connect to a shared folder by using the Run command, as follows:
Click the Start button, click Run, and then type \\computer_name in the
Open box.Windows 2000 displays shared folders for the computer. Double-click the shared folder to which you want to connect.
You can connect to a shared folder by using My Network Places, as follows:
Double-click the My Network Places icon. Locate the computer on which the shared folder is located. Double-click the shared folder to which you want to connect.
Figure 15.8 The Map Network Drive wizard
Lesson Summary
In this lesson, you learned that you can share resources with others by sharing folders containing those resources. To share a folder, you must be a member of one of several groups, depending on the role of the computer where the shared folder resides. You can control access to a shared folder by limiting the number of users who can simultaneously gain access to it, and you can also control
access to the folder and its contents by assigning permissions to selected users and groups. To access a shared folder, users must connect to it and must have the appropriate permissions. You can modify a shared folder, stop sharing it, change its share name, and change user and group permissions to gain access to it.