2.1 Sample Container Login Script

The container login script should contain any information that applies to all users. By using some or all of the commands included in the following sample container login script, you might find it easier to plan and create your own container login scripts.

For more detailed information about each type of login script command, see Login Script Commands and Variables.

MAP DISPLAY OFF
MAP ERRORS OFF
MAP *1:=%HOME_DIRECTORY

IF "%1"="ADMIN" THEN MAP *1:SYS:SYSTEM

IF OS="WINNT" THEN
   MAP P:=SYS:PUBLIC
ELSE
   MAP INS S1:=SYS:PUBLIC
   MAP INS S2:=SYS:PUBLIC\%MACHINE\%OS\%OS_VERSION
END

IF OS="WINNT" THEN
   MAP P:=SYS:USERS\%LOGIN_NAME\WINNT
   MAP INS S16:=SYS:APPS\WINAPPS\WINNT
   SET TEMP = "P:\USERS\%LOGIN_NAME\WINNT\TEMP"
END 

IF OS="LINUX" THEN
   WRITE "Running on Linux"
   MAP mydocuments=server/vol1:/documents
   ELSE
   WRITE "Running on a machine other than Linux"
   MAP d:=server/vol1:/documents
END 
IF MAP INS S16:=VOL1:APPL\LOTUS
MAP INS S16:=SYS:EMAIL
MAP M:=VOL1:SHARED
MAP N:=VOL1:MODEMS

MAP O=SYS:DOC

IF MEMBER OF "MANAGERS" THEN
   MAP *3:=VOL1:PROJECTS\REPORTS
END

IMPORTANT:The Novell Client for Linux is designed to work with scripts that were written for the Windows Client, so if you already have Windows login scripts, Linux workstations logging in to the network will execute any part of the login script that is labeled IF OS=”WINNT”.