Common Login Script Commands; Creating Or Modifying Login Scripts - Novell LOGIN SCRIPTS - 08-2008 Manual

Table of Contents

Advertisement

1.3 Common Login Script Commands

Login scripts are powerful and can execute many different commands that you might find useful.
However, the most common use for login scripts is mapping drives on NetWare servers. The
following are the most common commands:
MAP: Defines a path to a directory on a NetWare server. By putting a MAP command in the
login script, the directory is automatically available to the user in My Computer. The drive
letter can either be specified (MAP G:=) or can be relative (MAP *1= or MAP NEXT=). See
Section 3.18, "MAP," on page
IF...THEN: Gives statements of condition. For example, IF MEMBER OF "MANAGERS"
THEN would execute the command that follows only if the user is a member of the Managers
group. See
INCLUDE: Provides the name of an ANSI text file to be processed at a specific point in the
login script. See
EXIT: Terminates all login script processing. EXIT is often used with IF...THEN
statements. See
Information on these commands and others that you might find useful is provided in
"Login Script Commands and Variables," on page
Login Scripts" on page

1.4 Creating or Modifying Login Scripts

You can use Novell iManager or ConsoleOne
login script that is provided for you. Using a sample login script can help reduce syntax errors and
thus reduce the time it takes to create login scripts.
All four types of login scripts use the same conventions, commands, and variables. For more
information, see
The main difference in creating Container, Profile, and User login scripts is the object that you select
to contain the login scripts. The default login script is not assigned to any object.
Container login scripts are assigned to container objects (Organization or Organizational Unit
objects).
Profile login scripts are assigned to Profile objects. In order for a User object to use a profile
login script, you must select that User object and assign it to (make it a trustee) the Profile
object.
IMPORTANT: You must make the user a trustee of the Profile object in order for the User
object to be able to access the Profile login script. Failing to do so means that the User object
has the command to run the Profile login script but does not have the rights to access it, so the
login script does not run.
User login scripts are assigned to User objects.
Before you create or modify login scripts, you must have the Write property right to the object that
will contain the login script. In addition, the Organization, Organizational Unit, Profile, or User
object that you plan to assign the login script to must already exist.
12
Novell Login Scripts Guide
47.
Section 3.15, "IF...THEN," on page
Section 3.16, "INCLUDE," on page
Section 3.11, "EXIT," on page
21.
"Login Script Commands and Variables" on page
43.
45.
41.
29. Sample login scripts are located in
®
to create login scripts from scratch or from a sample
29.
Chapter 3,
"Sample

Advertisement

Table of Contents
loading

This manual is also suitable for:

Login scripts

Table of Contents