home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 36 Tips
/
36-Tips.zip
/
NWLOGN.FAX
< prev
next >
Wrap
Text File
|
1994-11-26
|
11KB
|
288 lines
Setting up Login Scripts and Automatic L 7/14/94
NWLOGIN - NetWare Login Problems / Solutions
**************
Table of Contents
Recommended ways to login
How to set up automatic login for NetWare Client for OS/2
How to create a login script
Sample OS/2 login scripts
Common Login Errors / Solutions
- Login window coming up when boots up
**************
NOTE: Before you login, make sure you have the OS/2 file server
utilities on your server. If these OS/2 utilities have been
installed on the server, you will see OS2 subdirectories in the
PUBLIC and LOGIN directories. (For NetWare 3.x servers, an OS2
subdirectory will also appear in the SYSTEM directory.)
**************
Recommended ways to login
There are two main ways to login:
1. From the command line
2. Using NetWare Tools
You should NOT try to use the network folder. It does not work
with the NetWare Requester for OS/2.
Command line:
To login from the command line, go to an OS/2 prompt and type
login <servername>\<username>
where <servername>\ is optional. It is needed only if you want
to login to a different server than your
preferred server, and
<username> is your user ID.
You will then be prompted for your password.
NetWare Tools:
You can also attach to servers through NetWare Tools, which will
give you access to the same resources that logging in to the server
gives you.
To attach to a server with NetWare Tools, do the following:
1. Double-click on the NetWare Tools icon in the Novell folder.
2. Select the Tools pull-down menu, and choose Server.
3. At the Server panel, press the Insert key on your keyboard.
(You should see the Attach panel at this point.)
4. At the Attach panel, enter the name of your server or click on
the arrow to the right of the server field to get a list of
available servers.
5. Enter your user name and then your password and click on Attach.
After this process, you should be attached to the server and able
to access the resources on the server.
**************
How to set up automatic login for NetWare Client for OS/2
To configure the NetWare Client to automatically login on startup,
there are also two main approaches--from the command line or from
NetWare Tools.
Command line:
You can use any of the following ways to configure for automatic
login. Pick the method that best suits your needs.
1. Creating a STARTUP.CMD file
You can create a STARTUP.CMD file in the root directory of the
bootup drive. The first line in the file should look like the
following:
<drive>&colon.<path>\login.exe <server_name>\<user_name>
where <drive>&colon.<path> is the path of your NetWare subdirectory,
which is usually something like c&colon.\netware
<server_name> is the name of your file server, and
<user_name> is your user ID.
You can also put any CAPTURE or MAP statements in this file
that you would like to have run automatically after login.
After creating this file, you should be asked for your password
when you reboot.
2. Adding a CALL line as the last line in the CONFIG.SYS
This process is not supported by Novell, so if you have problems
with it on your system, use one of the other methods given in
this document. Also, be aware that it does not support all login
script commands, such as CAPTURE statements. If you want to
run CAPTURE commands automatically, they must go in the
STARTUP.CMD file.
The last line in the CONFIG.SYS should look like the following:
call=c&colon.\netware\login.exe <servername>\<username>
where <servername> is the name of your file server and
<username> is your user ID. Also, make sure the path
included in this line matches the actual path of your
LOGIN.EXE file (whatever your NetWare subdirectory is
named).
3. Creating a Login icon in the Startup folder
You can create a login icon by copying an icon from the Templates
folder into the Startup folder. You can then click on the icon
with the right mouse button and Open Settings. At this screen,
include the path of your LOGIN.EXE for the pathname. It should
look similar to the following:
c&colon.\netware\login.exe
You can also include the following line in the Parameters box:
<servername>\<username>
where <servername> is the name of your file server and
<username> is your user ID.
NetWare Tools:
You can create a NetWare Tools icon and put it in the OS/2 System
Startup folder. The NetWare Tools icon should point to the
nwtools.exe file. The settings file (with an .nws extension) should
go in the Parameters box. The settings file is the file that's
created when you "Save settings as..." from the Network pull-down
menu in NetWare Tools. You can also choose to minimize the NetWare
Tools window by selecting "Start Minimized" in the Session tab of the
icon setup.
This will give you a login dialogue window each time you start the
machine, and NetWare Tools will minimize the login window after you
enter your password.
**************
How to create a login script for NetWare 3.11 servers
There are two basic kinds of login scripts--system login scripts and
user login scripts. The system login scripts are set up by the
network administrator and are used when each user logs in. In
addition, you can set up individual user login scripts that run after
the system login script. The user login scripts usually contain
drive mappings and other statements that apply only to a particular
user's environment. One other thing to notice is that the OS/2
login script is different from the DOS login script.
To create the system OS/2 login script:
1. From an OS/2 window, go to a drive that is mapped to the
SYS&colon.PUBLIC\OS2 volume, and type SYSCON.
2. Select "Supervisor Options" from the main menu.
3. From the Supervisor Options screen, select "System Login Scripts".
4. You should get an empty box that says "System Login Script" at
the top. You can enter the login script commands here.
5. When you finish entering the commands, press the Esc key and
then press Enter. Press Esc again to return to the main menu.
To create an OS/2 user login script:
1. From an OS/2 window, go to a drive that is mapped to the
SYS&colon.PUBLIC\OS2 volume, and type SYSCON.
2. Select "User Information" from the main menu.
3. From the User Information screen, select the particular user name
you need.
4. Then select "Login Script".
5. You should get an empty box that says "User Login Script" across
the top. You can enter the login script commands here.
NOTE: You can copy a login script from one user to another.
After copying the login script from another user, be sure
to modify it as needed for the user's environment.
6. When you finish entering the commands, press the Esc key and
then press Enter to save the changes.
**************
Sample OS/2 login scripts
Sample System Login Script:
WRITE "Good %GREETING_TIME, %LOGIN_NAME."
MAP DISPLAY OFF
MAP ERRORS OFF
IF LOGIN_NAME <> "SUPERVISOR" THEN BEGIN
MAP Z&colon.=NW_1/NSE&colon.NSEPRO
END
#CAPTURE Q=IBM4019 NFF NB
MAP DISPLAY ON
MAP
Sample User Login Script:
MAP G&colon.=NW_1/SYS:
MAP H&colon.=NW_1/SYS&colon.SYSTEM
MAP P&colon.=NW_1/SYS&colon.PUBLIC
WRITE "Hello, %FULL_NAME"
#P&colon.\OS2\CAPTURE LPT1 Q=IBM4019 NFF NB
NOTE: The following commands are NOT supported in OS/2 login
scripts:
COMSPEC
DOS BREAK
MACHINE NAME
Also, the following commands have limitations with OS/2
login script files:
EXIT does not support file names
DRIVE sets default for login process only
INCLUDE must use the UNC pathname for the file
MAP cannot map search drives. Use OS/2 PATH and
DPATH commands instead.
SET sets the environment variable for the login
process only. Spawned processes inherit the
variable, but the variable disappears when
LOGIN terminates.
See the Installation manual for NetWare Version 3.11,
Appendix A, for more information about the login script
commands.
**********
Common Login Errors / Solutions
Problem: If you want to keep the login window from coming up on
bootup, you can do the following.
Action: 1. You should go into the CONFIG.SYS file and find the
line that looks something like the following:
SET AUTOSTART=PROGRAMS,TASKLIST,FOLDERS,CONNECTIONS
Remove the last option-- the ",CONNECTIONS" part of
this line to get:
SET AUTOSTART=PROGRAMS,TASKLIST,FOLDERS
This will get rid of the extra login screen that
does not work with NetWare requester logins.
2. Also, add the line DIRECTORY SERVICES OFF to the
NetWare Requester part of the NET.CFG file if you
have a NetWare 3.11 or 3.12 server.
------------------------------------------------------------------------
NetWare, NetWare Client for OS/2, and NetWare Requester for OS/2 are
trademarks of Novell, Inc.
Thank you for calling Software Solution Services. Regarding the problem
reported to the support line, we feel that this information may assist
you in resolving your problem. If you still require assistance, please
call 1-800-992-4777 again, and you will be connected to the appropriate
support personnel.
IBM disclaims all warranties, whether expressed or implied, including
without limitation, warranties of fitness and merchantability with
respect to the information in this document. By furnishing this
document, IBM grants no licenses to any related patents or copyrights.
If you identify errors or have comments about this document, please let us
know. We will make every effort to correct errors and improve the
quality of this document.
Please FAX your comments to&colon.
(512) 823-9495
IBM
Attn: CBR Express Team
Thanks!
*****
LAST UPDATED 6/3/94
(END)
12/31/99