Supervising the Network
5-65
Customizing the User Environment
Examples of Login Scripts
Container Login Script
The container login script should contain as much information as possible
that applies to all users. An example is shown in Table 5-8.
IF “%1”=“ADMIN” THEN MAP *1:=SYS:SYSTEM If the login name is ADMIN, the first drive
is mapped to SYS:SYSTEM instead of the
user’s home directory.
MAP P:=SYS:PUBLIC If the user logs in from an OS/2
workstation, drive P: is mapped to
SYS:PUBLIC.
If the user is not using an OS/2 workstation,
this drive mapping is not included in the
default login script.
MAP INS S1:=SYS:PUBLIC
MAP INS S2:=SYS:PUBLIC\
%MACHINE\%OS\%OS_VERSION
If the user is using a DOS or Windows
workstation, the first search drive is mapped
to SYS:PUBLIC, where DOS-based
NetWare utilities are stored.
Then the second search drive is mapped to
the directory where DOS is stored. (The two
MAP commands are joined by a
semicolon.)
If the user logs in from an OS/2
workstation, these drive mappings are not
included in the default login script.
MAP DISPLAY ON Allows MAP commands to display.
MAP Displays a list of all drive mappings on the
user’s screen.
Table 5-7 Default Login Script
Login Script Command Purpose