Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP 9000 Networking: Supervising the Network > Chapter 5 Customizing the User Environment

Creating, Modifying, Copying, and Printing Login Scripts

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

To create or modify login scripts and to copy one object's login script into another's, you can use either NetWare Administrator or NETADMIN. Both procedures are described in this section.

If you are logged in to a server running NetWare 2 or NetWare 3 and that server is in a Directory tree, do not create or edit a login script using the SYSCON utility. If you do, the changes to that login script will not appear in your NetWare Directory Services login script. The reason is that your NetWare Directory Services login script is a property of your User object, while your bindery-based login script is a file in your MAIL directory.

The main difference in creating container, profile, and user login scripts is the object you select to contain the login scripts:

  • Container login scripts are assigned to container objects (Organization or Organizational Unit objects).

  • Profile login scripts are assigned to Profile objects. For a User object to use a profile login script, you must select that User object and assign it to the Profile.

  • User login scripts are assigned to User objects.

All types of login scripts use the same conventions, commands, and variables.

Hints for Planning Login Scripts

The following hints can help you plan effective login scripts. For a description of the commands you can use in a login script, see "Login Script Commands and Variables" in this chapter.

For login script examples, see "Examples of Login Scripts" in this chapter.

Table 5-2 Login Script Conventions

Subject

Convention

Minimum login script

No minimum. All four types of login scripts are optional. Login scripts can have only one line or they can have many. There are no required commands for login scripts.

Case

Either uppercase or lowercase is accepted, except that identifier variables enclosed in quotation marks and preceded by a percent sign (%) must be uppercase. See "Identifier Variables" in this chapter.

Characters per line

150 characters per line is maximum; 78 characters per line (common screen width) is recommended for readability.

Punctuation and symbols

Type all symbols (#, %, ", _ ) and punctuation exactly as shown in examples and syntax.

Commands per line

Use only one command per line. Start each command on a new line; press <Enter> to end each command and start a new command. Lines that wrap automatically are considered one command. The WRITE command output displays better if WRITE is repeated at the beginning of each wrapped line.

Sequence of commands

Generally, enter commands in the order you want them to execute, with the following restrictions:

  • ATTACH commands must precede related MAP commands to avoid prompting the user for a username/password during login.

  • If you use "#" to execute an external program, this command must follow any necessary MAP commands.

  • If sequence is not important, you should group similar commands, such as MAP and WRITE commands, together to make the login script easier to read.

Blank lines

Blank lines don't affect login script execution. Use them to visually separate groups of commands.

Remarks (REMARK, REM, asterisks, and semicolons)

Lines beginning with REMARK, REM, an asterisk, or a semicolon are comments that do not display when the login script executes. Use remarks to record the purpose of each command or group of commands. (For examples, see "REMARK" in this chapter).

Identifier variables

Type identifier variables exactly as shown. For the value of an identifier variable to be displayed on the workstation's screen as part of a WRITE command, you must enclose the identifier in quotation marks and precede it by a percent sign (%). See "Identifier Variables" in this chapter.

 

Creating or Modifying a Login Script Using NetWare Administrator

Use the following instructions to create any of the three user-created types of login scripts (container, profile, or user).

Prerequisites

  • A 386 or later workstation and NetWare Administrator

  • The Write property to the object that will contain the login script

  • The object to which you are going to assign the login script must already exist (Organization, Organizational Unit, Profile, or User Object)

Procedure

  1. From the Windows Program Manager, click on the "NetWare Administrator" icon.

  2. Using the browser, select the object whose login script you are creating or modifying.

    For information about moving around in the browser and selecting objects, choose "Help" from the menu bar.

  3. From the "Object" menu, choose "Details."

  4. Choose the "Login Script" page.

  5. Enter the login script commands and information into the login script text box.

    For a description of all login script commands, see "Login Script Commands and Variables" in this chapter. For login script examples, see "Examples of Login Scripts" in this chapter.

  6. Choose "OK" to save the login script and close the "Details" dialog box.

    If the login script you created was a container or user login script, you are finished.

    If the login script you created was for a Profile object, continue with Step 7.

  7. (Profile login scripts only) Using the browser, select the User object that needs to use the profile login script.

  8. From the "Object" menu, choose "Details."

  9. Choose the "Login Script" page.

  10. Enter the name of the Profile object in the "Default Profile" field located under the login script text box.

    You can type in the complete name of the Profile object, or you can choose the browser button next to the "Default Profile" field to select the Profile object.

  11. To save the Profile object name and close the "Details" dialog box, choose "OK."

    Now you must add the User object as a trustee of the Profile object.

  12. Using the browser, select the Profile object.

  13. From the "Object" menu, choose "Trustees of This Object."

  14. Choose "Add Trustee."

  15. Enter the name of the User object who is using this Profile object.

    You can type in the complete name of the User object, or you can choose the browser button to select the Profile object.

  16. Make sure the Browse object right and the Read property right are checked and then choose "OK" to assign these rights to the User object.

    The User object is now a trustee of the Profile object and has the rights necessary to run the profile login script.

Additional Information

For more information about

Refer to

Creating a Profile object

"Managing Profile Objects" in this chapter

Examples of login scripts

"Examples of Login Scripts" in this chapter

Login script commands and variables

"Login Script Commands and Variables" in this chapter

Using NetWare Administrator

"NetWare Administrator" in Utilities Reference

Creating or Modifying a Login Script Using NETADMIN

Use the following instructions to create any of the three user-created types of login script (container, profile, or user).

Prerequisites

  • A workstation running DOS 3.30 or later and NETADMIN

  • The Write property to the object that will contain the login script

  • The object to which you are going to assign the login script must already exist (Organization, Organizational Unit, Profile, or User Object)

Procedure

  1. At the DOS Prompt, type

    NETADMIN <Enter>
  2. From the "NetAdmin Options" menu, choose "Manage Objects."

  3. Select the object whose login script you want to create.

    • If the object you want appears in the list, select it and press <F10>.

    • If the object is not in the list, browse the directory by selecting container objects and pressing <Enter> until you see the object you want. Select it and press <F10>.

  4. Select "View or Edit Properties of This Object."

  5. Select "Login Script."

    If you are editing an existing login script that already contains some commands, continue with Step 3.

    If this login script is empty, a message appears asking if you want to copy a login script from another object.

    1. If you do not want to copy the login script from another object, answer "No" and continue with Step 3.

    2. To copy a login script from another object, answer "Yes" and select the name of the object whose script you want to copy. Then continue with Step 3.

  6. Enter the login script commands and information in the login script text box.

    For a description of all login script commands, see "Login Script Commands and Variables" in this chapter. For login script examples, see "Examples of Login Scripts" in this chapter.

  7. To save the login script, press <F10>.

    If the login script you created was a container or a user login script, you are finished.

    If the login script you created was for a Profile object, continue with Step 5.

  8. (Profile login scripts only) Press <Esc> repeatedly until you return to the browser.

  9. Select the User object that needs to use the profile login script.

    You can either type the object's complete name and press <F10> or press <Insert> to browse through the Directory tree and choose the name.

  10. Select "View or Edit Properties of This Object."

  11. Select "Memberships."

  12. Select the "Profile" field and press <Insert>.

  13. Enter the name of the Profile object in the box that appears.

    You can either type the object's complete name and press <F10> or press <Insert> to browse through the Directory tree and select the name.

  14. Press <F10> to save the changes.

    Now you must add the User object as a trustee of the Profile object.

  15. Return to the "Manage Objects" menu.

  16. Through the browser, select the Profile object.

    Press <Insert> to browse through the Directory tree and choose the name.

  17. Select "View or Edit the Trustees of This Object."

  18. Select "Trustees."

  19. To add the User object as a trustee of this Profile object, press <Insert>.

  20. Enter the name of the User object that needs to be a trustee of this Profile object.

    You can either type the object's complete name and press <F10> or press <Insert> to browse through the Directory tree and choose the name.

  21. Select "All Properties Rights."

  22. To add the user as a trustee and grant the default property right, press <Enter>.

    The User object is added as a trustee of the Profile object and is given the Read right to all of the Profile's properties.

    Now you must assign the Browse object right to the User object.

  23. Enter the name of the User object.

    You can either type the object's complete name and press <F10> or press <Insert> to browse through the Directory tree and choose the name.

  24. Choose "Object Right."

  25. To grant the default object right, press <Enter>.

    The User object is given the Browse object right. The User object now has all rights necessary to use the Profile object's login script.

  26. To exit NETADMIN, press <Esc> until you get to the confirmation prompt and select "Yes."

Additional Information

For more information about

Refer to

Creating a Profile object

"Managing Profile Objects" in this chapter

Examples of login scripts

"Examples of Login Scripts" in this chapter

Login script commands and variables

"Login Script Commands and Variables" in this chapter

Using NETADMIN

"NETADMIN" in Utilities Reference

Copying a Login Script Using NetWare Administrator

Use the following instructions to copy all or part of a login script and paste it into another object's login script.

Prerequisities

  • A 386 or later workstation and NetWare Administrator

  • The Write property to the object that will contain the login script

  • The object whose login script you will be working with must already exist (Organization, Organizational Unit, Profile, or User Object)

Procedure

  1. From the Windows Program Manager, click on the "NetWare Administrator" icon.

  2. Using the browser, select the object whose login script you want to copy.

    For information about moving around in the browser and selecting objects, choose "Help" from the menu bar.

  3. From the "Object" menu, choose "Details."

  4. Choose the "Login Script" page.

  5. In the login script text box, highlight the text you want to copy.

  6. Press <Ctrl>+<Insert> to copy the highlighted text.

    The highlighted text has been placed in clipboard memory and can be pasted into another login script.

  7. To save the login script and close the "Details" dialog box, choose "OK."

  8. Using the browser, select the object whose login script you want to paste the copied text into.

  9. From the "Object" menu, choose "Details."

  10. Choose the "Login Script" page.

  11. In the login script text box, place the cursor where you want the copied text to appear.

  12. Press <Shift>+<Insert> to paste the copied text into the login script.

  13. To save the login script and close the "Details" dialog box, choose "OK."

Copying a Login Script Using NETADMIN

Use the following instructions to copy all or part of a login script and paste it into another object's login script.

Prerequisites

  • A workstation running DOS 3.30 or later and NETADMIN

  • The Write property to the object that will contain the login script

  • The object whose login script you will be working with must already exist (Organization, Organizational Unit, Profile, or User Object)

Procedure

  1. At the DOS prompt, type

    NETADMIN <Enter>
  2. From the "NetAdmin Options" menu, choose "Manage Objects."

  3. Select the object whose login script you want to copy.

    • If the object you want appears in the list, select it and press <F10>.

    • If the object is not in the list, browse the Directory by selecting container objects and pressing <Enter> until you see the object you want. Select it and press <F10>.

  4. Select "View or Edit Properties of This Object."

  5. Select "Login Script."

  6. In the login script text box, place the cursor at the beginning of the text you want to copy and press <F5> to mark the beginning of the text.

  7. Use the arrow keys to move to the end of the text you want to copy.

    As you move the cursor, the text in the login script is highlighted. You will copy this highlighted text by first deleting it, and re-inserting it. Then you will insert it into the new login script.

  8. To delete the text from the login script, press <Delete>.

    Although you have deleted the text, the text has been placed in a clipboard memory and can be retrieved.

  9. To insert the text from the login script, press <Insert>.

    The deleted text has now been restored to the login script. A copy of the text still resides in the clipboard memory, so you can paste it into another object's memory.

  10. To exit the login script, press <Esc>, and select "No" when asked if you want to save the changes you made.

  11. Return to the browser screen.

  12. Select the object whose login script you want to paste the copied text into.

    You can either type the object's complete name and press <F10> or press <Insert> to browse through the Directory tree and choose the name.

  13. Select "View or Edit Properties of This Object."

  14. Select "Login Script."

  15. In the login script text box, place the cursor where you want the copied text to appear.

  16. To paste the copied text into the login script, press <Insert>.

  17. To save the changes, press <F10>.

Printing Login Scripts

Use the following instructions to print a login script.

Prerequisites

  • A workstation running DOS 3.30 or later

  • The Read and File Scan property right to the object to be printed

Procedure

To print a login script from the command line, use the NLIST command and redirect the output to a file or a printer. You must be in an object's parent container to see and print the login script of that object.

To print a user's login script, use the following format:

NLIST user <username> show "login script" >LPT1

To print a container's login script, use the following format:

NLIST "organizational unit" = "ou name" show "login script" 
>LPT1

Any parameter of the NLIST command that includes a space in its name must be enclosed in quotation marks.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1996 Hewlett-Packard Development Company, L.P.