User Guide
Sample Login Scripts 95
Novell Client for Windows
103-000159-001
December 7, 2001
Novell Confidential
Manual 99a38 July 17, 2001
Sample User Login Script
The following sample login script is an example of a login script created for
user Mary. The user login script executes after the container and profile login
scripts have executed. In addition, a user login script prevents the default login
script from executing for this specific user.
Therefore, you should consider whether any commands in the default login
script are necessary for setting the user’s environment. If so, determine
whether those commands should be placed into one of the other login scripts
(container, profile, or user).
MAP DISPLAY OFF
MAP ERRORS OFF
MAP *7:=VOL1:MARY\PROJECTS\RESEARCH
MAP *8:=VOL1:FORMS
REM Mary needs access to FORMS while she’s on the
REM troubleshooting team.
SET WP="/u-mjr/b-5"
SET USER="mrichard"
#SEND /A=N
For more detailed information about each type of login script command, see
“Login Script Commands and Variables” on page 59.
Sample Default Login Script
The default login script executes the first time User object Admin logs in. It
also executes for any users who do not have user login scripts.
You can’t modify the default login script because it is coded into the Novell
®
LOGIN utility. Instead, you can create container, profile, or user login scripts.
The following sample of the default login script lists its contents and lets you
find out more information about each command in the default login script.
MAP DISPLAY OFF
MAP ERRORS OFF
MAP *1:=%FILE_SERVER\SYS:
MAP *1:=%FILE_SERVER\SYS:%LOGIN_NAME
IF "%LOGIN_NAME"="SUPERVIS" OR "%LOGIN_NAME"="ADMIN" THEN
MAP *1:=%FILE_SERVER\SYS:SYSTEM
MAP INS S1:=%FILE_SERVER\SYS:PUBLIC
MAP INS S2:=%FILE_SERVER\SYS:PUBLIC\%MACHINE\%OS\%OS_VERSION
MAP DISPLAY ON
MAP
For more detailed information about each type of login script command, see
“Login Script Commands and Variables” on page 59.