Sharing Resources With Network Users

The only way to make a file accessible over the network is to share one of its parent directories.

When you share a directory on the server, users theoretically can gain access to that directory, the files in it, all of the subdirectories in that directory and their contents, and all of the subdirectories in those subdirectories and their contents. Every point on the directory tree below the shared directory is available to network users.

You can use directory permissions to block access to some directories in a shared directory tree and allow access to others by setting permissions on them. A shared directory often is referred to simply as a share.

When you share a directory, you give it a share name by which network users refer to it. (A share name can be the same as the actual directory name but it does not have to be.)

Note

Windows NT Server, Windows NT Workstation, and Windows 95 users can see share names by double-clicking on the names of computers in the network in Network Neighborhood. MS-DOS users can use the net view command to see share names. Windows for Workgroups users see share names in File Manager when they connect to a network drive.

You can share multiple directories on a directory tree. This makes them accessible to users in two ways: as a directory that actually is shared and as a subdirectory of another shared directory.

Connecting to Shared Directories

There are several ways to connect to shared directories. In Windows NT Server and Windows NT Workstation, Version 4.0, and Windows 95, you can use the Find command on the Start menu to connect to any computer or shared directory on the network, or double-click on a computer in Network Neighborhood.

To assign a drive letter in My Computer for a particular share, use the Map Network Drive command on the Tools menu in the Explorer. Type the server name and share name into the Path box using the form \\servername\sharename. For Drive you can use the next available letter or select a letter from the drop-down list.

For example, to connect to the shared directory Applications on the server named Dept35, type the location in the Path box as shown below:

see graphic

In the Explorer and My Computer, the mapped drive appears in the window as

The share appears as a drive on your computer and the content of the shared directory can be viewed as if it was on your computer. You can have the connection re-established every time you log on or clear the Reconnect at Logon check box to disconnect automatically when you log off.

If you want to connect to a shared directory using a different user account, use the Connect As box to type the user name for that account. If the account is in a different domain, type the domain name followed by a back slash and then the user name; for example, projects\patc.

Users of Windows NT, Version 3.5x, Windows, and Windows for Workgroups can use File Manager to make network connections.

After a Windows user makes a connection to a directory, the drive letter assigned to that directory and an icon appear in the drive bar of File Manager.

For client computers running MS-DOS or OS/2 with LAN Manager client software (but without Windows), use the net use command to make network connections as follows:

In the following diagram, the server on the left represents Dept32, and Applications is the share name.

see graphic

Considerations for MS-DOS Users

The following naming conventions apply to client computers running MS-DOS:

For more information about Advanced Server file name space mapping, see the next section.

Note

If an application that does not support long file names opens a file with a long name and then saves the file, the long name is lost and only the short name remains.

Advanced Server Name Space Mapping

Advanced Server file name space mapping lets client computers running MS-DOS or Window for Workgroups to access files with long file names created by Windows 95, Windows NT, and OS/2 clients.

File name space mapping allows different types of clients to access files residing in a UNIX file system managed by Advanced Server.

The file name space mapping feature is composed of the following three elements:

The challenge of mapping between name spaces is resolved on UNIX systems by concatenating a truncated file name with a pseudo-unique suffix, which is generated dynamically from the i-node number of the UNIX system file.

The following table lists the client computer software that uses only the 8.3 file naming convention:

8.3 File Naming Convention Client Computers

MS-DOS

Windows 3.1 (without "longfilenames=1" in WINFILE.INI)

Windows for Workgroups

OS/2 DOS Window

OS/2 WIN-OS/2

The following table lists the client computer software that uses the Windows NT-style naming convention:

Windows NT-Style File Naming Client Computers

Windows NT

Windows 3.1 (with "longfilenames=1" in WINFILE.INI)

Windows 95

OS/2

The following table lists the configuration keys that are used for file name space mapping in the Advanced Server Registry:

Key

Possible Values

Default Value

MixedCaseSupport

0 (disabled), 1

0

NameSpaceMapping

0 (none), 1 (DOS), 2 (NT), 3 (all)

3

UniqueSuffixLength

0 -7

3

TruncatedExtensions

0 (disabled), 1

1

MappingSeparator

Any string value less than 12 characters that uses valid Windows NT characters.

~

The registry path for these settings is as follows:

\SYSTEM\CurrentControlSet\Services\AdvancedServer\FileServiceParameters

The MixedCaseSupport key specifies whether mixed-case support is enabled on the server. Mixed-case support allows clients to access file names on the UNIX system that contain uppercase characters. Enabling mixed-case file names may affect the server’s performance negatively. Mixed-case support is disabled by default.

The NameSpaceMapping key specifies the type of the mapping enabled on the server, as follows:

Value

Description

0

No name space mapping is enabled.

1

Only UNIX system type name-to-8.3 type name mapping is enabled. This allows 8.3 file naming clients to access files with long file names and file names containing characters that are invalid in MS-DOS, such as ( ) + , ; = [ ] ? " \ < > * | : . [space]

2

Only UNIX system file name-to-Windows NT style file name mapping is enabled. This allows Windows NT-style naming clients (Windows 95, Windows NT, OS/2) to access files with file names containing characters that are unacceptable on Windows NT (such as ? " \ < > * | :).

3

Both UNIX system file name-to-8.3 file type name mapping and UNIX system file name-to-Windows NT style file name mapping are enabled.

For more information about the Advanced Server Registry, see Advanced Server Administration.

For UNIX system file name-to-8.3 type name mapping, the following rules apply:

For example, the file name longfilename.txt and i-node number of 11455, would have a mapped name of long~8u7.txt.

For UNIX system file name-to-Windows NT-style name file name mapping, the following rules apply:

For example, the file name k<l<m.expression and i-node number of 8461 would have a mapped name of k_l_m~6j1.expression.

Considerations for Using File Name Space Mapping

A decision on whether your server should support mixed-case file names should be considered carefully. Mixed-case support allows clients to have access to file names on UNIX systems that contain uppercase characters but this feature has a negative impact on server performance.

It is inadvisable to switch frequently between mixed-case support on the same server. While mixed-case support is enabled, clients can create files with mixed-case names. These files will become unavailable to them as soon as mixed-case support is disabled. If mixed-case support is changed from "on" to "off," every existing file name should be made lowercase.

Do not create file names that are case-insensitively identical in the same directory. Although the UNIX system is case-sensitive, mixed-case support on Advanced Server causes the server to preserve case but behave in a case-insensitive way, just like Windows NT. Microsoft product users are not aware of the possibility of having case-insensitive similar file names in a directory because Windows NT does not allow such files. As a result, users may become confused if they access incorrect files or are denied access to files they need.

Do not use characters that are invalid in MS-DOS in the names of batch files or DOS executables. If one of those files is executed from a Windows NT or Windows 95 client, Command Shell will be invoked and it will interpret those file names incorrectly. This may result in actual file names not being found.

Setting "longfilenames=1" in WINFILE.INI on Windows 3.1 client computers should be done with great caution. Clients with this setting enabled are not able to view files on Windows NT (Versions 3.51 and 4.0) computers. Although these clients can access Advanced Server files, support for this feature on the client side is unreliable.

Previous Page Page Top Index Next Page See Page