Customizing the user environment

MAP

Use MAP to map drives and search drives to network directories.

MAP has the following command format:

MAP [option] [drive:=path]

Replace drive with any valid network drive letter, local drive letter, or search drive number.

Replace path with a drive letter, a full directory path, or a Directory Map object.

More than one command can be on the map line if the commands are separated by a semicolon (;), as shown in the following example:

   MAP *1:=SYS:PUBLIC;*2:=SYS:PUBLIC\DOS
When mapping a drive to a directory on an NDS server, begin the path with either the Volume object name or server/volume.

When mapping to a directory on a bindery-based server or to an NDS server that is not your current server, begin the path with the server's name.

Replace option with one of the following:

DISPLAY ON/OFF
Determines whether drive mappings are displayed on the screen when the user logs in. The default setting is ON. This option is valid only in login scripts.

ERRORS ON/OFF
Determines whether MAP error messages are displayed when the user logs in. MAP ERROR OFF must be placed before MAP commands in the login script. The default setting is ON. This option is valid only in login scripts.

INS
Inserts a drive mapping between existing search mappings. This option is valid in login scripts and at the DOS command line.

DEL
Deletes a drive mapping, making that drive letter available for other mapping assignments. This option is valid in login scripts and at the command line.

ROOT
Maps a fake root. OS/2 is always mapped to the root. Some applications require their executable files to be located in a root directory.

Since you may not want users to have rights at the root directory, you can map a fake root to a subdirectory instead. This option is valid in login scripts and at the command line.

C (CHANGE)
Changes a search drive mapping to a regular mapping and a regular mapping to a search drive mapping. This option is valid in login scripts and at the command line.

NP (No prompt)
When a MAP command conflicts with an existing drive mapping, MAP NP eliminates the prompt that asks the user if the new drive mapping should overwrite the old mapping.

This option is valid only at the command line.

P (Physical)
Maps a drive to the physical volume of a server rather than to the Volume object's name.

It is possible to have a Volume object name that conflicts with a physical volume name. (For example, object ACCT is an Accounting volume, but there is also an ACCT which is a physical volume.)

Therefore, if you prefer to map a drive to the physical volume name, use MAP P. This option is valid in login scripts and at the command line.

N (Next)
When used without specifying a drive number or letter, maps the next available drive. This option is valid in login scripts and at the command line.

Follow these guidelines when using MAP:

Mapping search drives


NOTE: OS/2 workstations do not use search drives. Instead, OS/2 users use the OS/2 commands PATH, DPATH, and LIBPATH in their CONFIG.SYS files.

For DOS and Windows workstations, you can map search drives to directories that contain applications, executable files, and so forth. Then users can execute those applications regardless of the directory in which they are currently working.

A maximum of 16 NetWare search drives is allowed.


NOTE: Any object names in the login script should either be in the user's context or should have an alias point to the real object in another context. Any object referenced by a name outside the user's context will not work when that object is moved or renamed or the context is renamed.

When you map a search drive, use a search drive number (an S followed by a number). This search drive number assigns the next available drive letter to the mapping, starting with Z and working backwards through the English alphabet.

The letter assigned to the search drive is put into the DOS path statement. If you already have search drives in the path statement, the command MAP S1:= will overwrite the first one in the path. To prevent search drive assignments from overriding existing DOS PATH letters, use the INSERT option when assigning search drives. For example, type

MAP INS S16:=path

To ensure that users can access NetWare utilities, DOS directories, and applications, we recommend you map search drives to these directories in the following order:

To avoid inadvertently changing the order of any search drives that must be mapped to a specific drive letter, you can map all remaining search drives with the number S16:, which assigns the next lowest search number each time it is used.

This command assigns the next available drive letter to the search drive without displacing the previous search drives.

If you have an application that requires a particular drive letter, you can use the following command to map the search drive, replacing drive with the drive letter:

MAP S16:=drive:=path

If you map a search drive using a number already assigned to a search drive, NetWare makes the old search drive a network drive. The letter assigned to the old search drive remains assigned as the converted drive mapping. The new search drive takes the next unused letter of the alphabet.

Mapping drives to directory map objects

Another way to map a drive to a directory is to create a Directory Map object that points to the directory. Then, if you move the directory, you only need to change the Directory Map object rather than all of the login scripts that may include that mapping.


NOTE: It is best to use Directory Map objects in the user's current context. Do not use complete names that point to other contexts. If the map is in another context, you should create an alias that points to the real Directory Map object.

For example, to map a search drive to a Directory Map object whose complete name is APPL.SALES_LA.ACME_US, add the following line to the login script:

   MAP S2:=.APPL.SALES_LA.ACME_US
In the previous example, the Directory Map object's name begins with a period, which indicates that the drive is mapped to the drive Root.

If the user whose login script this line appears in is also located in the SALES_LA.ACME_US context, the MAP command does not have to specify the Directory Map object's complete name. Instead, the line would be

   MAP S2:=APPL
For more information about using Directory Map objects, see ``Loading operating systems and applications onto the network''.

For example:

For more information about enabling users to run DOS from the network, refer to ``Loading DOS onto the network''. For details of how to set paths for OS/2 workstations, see the NetWare Client for OS/2 User Guide. Using Directory Map objects is explained in ``Loading operating systems and applications onto the network''.
© 1999 The Santa Cruz Operation, Inc. All rights reserved.
UnixWare 7 Release 7.1.1 - 5 November 1999