home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 36 Tips / 36-Tips.zip / NWLOGN.FAX < prev    next >
Text File  |  1994-11-26  |  11KB  |  288 lines

  1. Setting up Login Scripts and Automatic L 7/14/94
  2.  
  3. NWLOGIN - NetWare Login Problems / Solutions
  4. **************
  5.  
  6. Table of Contents
  7.    Recommended ways to login
  8.    How to set up automatic login for NetWare Client for OS/2
  9.    How to create a login script
  10.    Sample OS/2 login scripts
  11.    Common Login Errors / Solutions
  12.      - Login window coming up when boots up
  13.  
  14. **************
  15.  
  16.    NOTE:  Before you login, make sure you have the OS/2 file server
  17.    utilities on your server.  If these OS/2 utilities have been
  18.    installed on the server, you will see OS2 subdirectories in the
  19.    PUBLIC and LOGIN directories.  (For NetWare 3.x servers, an OS2
  20.    subdirectory will also appear in the SYSTEM directory.)
  21.  
  22. **************
  23. Recommended ways to login
  24.  
  25.     There are two main ways to login:
  26.        1. From the command line
  27.        2. Using NetWare Tools
  28.  
  29.     You should NOT try to use the network folder.  It does not work
  30.     with the NetWare Requester for OS/2.
  31.  
  32.   Command line:
  33.  
  34.     To login from the command line, go to an OS/2 prompt and type
  35.       login <servername>\<username>
  36.     where <servername>\  is optional.  It is needed only if you want
  37.                          to login to a different server than your
  38.                          preferred server, and
  39.           <username> is your user ID.
  40.  
  41.     You will then be prompted for your password.
  42.  
  43.   NetWare Tools:
  44.  
  45.     You can also attach to servers through NetWare Tools, which will
  46.     give you access to the same resources that logging in to the server
  47.     gives you.
  48.  
  49.     To attach to a server with NetWare Tools, do the following:
  50.     1. Double-click on the NetWare Tools icon in the Novell folder.
  51.     2. Select the Tools pull-down menu, and choose Server.
  52.     3. At the Server panel, press the Insert key on your keyboard.
  53.        (You should see the Attach panel at this point.)
  54.     4. At the Attach panel, enter the name of your server or click on
  55.        the arrow to the right of the server field to get a list of
  56.        available servers.
  57.     5. Enter your user name and then your password and click on Attach.
  58.  
  59.     After this process, you should be attached to the server and able
  60.     to access the resources on the server.
  61.  
  62.  
  63. **************
  64. How to set up automatic login for NetWare Client for OS/2
  65.  
  66.   To configure the NetWare Client to automatically login on startup,
  67.   there are also two main approaches--from the command line or from
  68.   NetWare Tools.
  69.  
  70.   Command line:
  71.  
  72.     You can use any of the following ways to configure for automatic
  73.     login.  Pick the method that best suits your needs.
  74.  
  75.     1. Creating a STARTUP.CMD file
  76.  
  77.        You can create a STARTUP.CMD file in the root directory of the
  78.        bootup drive.  The first line in the file should look like the
  79.        following:
  80.  
  81.        <drive>&colon.<path>\login.exe <server_name>\<user_name>
  82.  
  83.        where <drive>&colon.<path> is the path of your NetWare subdirectory,
  84.                             which is usually something like c&colon.\netware
  85.              <server_name>  is the name of your file server, and
  86.              <user_name>    is your user ID.
  87.  
  88.        You can also put any CAPTURE or MAP statements in this file
  89.        that you would like to have run automatically after login.
  90.  
  91.        After creating this file, you should be asked for your password
  92.        when you reboot.
  93.  
  94.  
  95.     2. Adding a CALL line as the last line in the CONFIG.SYS
  96.  
  97.        This process is not supported by Novell, so if you have problems
  98.        with it on your system, use one of the other methods given in
  99.        this document.  Also, be aware that it does not support all login
  100.        script commands, such as CAPTURE statements.  If you want to
  101.        run CAPTURE commands automatically, they must go in the
  102.        STARTUP.CMD file.
  103.  
  104.        The last line in the CONFIG.SYS should look like the following:
  105.  
  106.        call=c&colon.\netware\login.exe  <servername>\<username>
  107.  
  108.        where <servername> is the name of your file server and
  109.              <username> is your user ID.  Also, make sure the path
  110.              included in this line matches the actual path of your
  111.              LOGIN.EXE file (whatever your NetWare subdirectory is
  112.              named).
  113.  
  114.  
  115.     3. Creating a Login icon in the Startup folder
  116.  
  117.        You can create a login icon by copying an icon from the Templates
  118.        folder into the Startup folder.  You can then click on the icon
  119.        with the right mouse button and Open Settings.  At this screen,
  120.        include the path of your LOGIN.EXE for the pathname.  It should
  121.        look similar to the following:
  122.  
  123.            c&colon.\netware\login.exe
  124.  
  125.        You can also include the following line in the Parameters box:
  126.  
  127.            <servername>\<username>
  128.  
  129.        where <servername> is the name of your file server and
  130.              <username> is your user ID.
  131.  
  132.   NetWare Tools:
  133.  
  134.     You can create a NetWare Tools icon and put it in the OS/2 System
  135.     Startup folder.  The NetWare Tools icon should point to the
  136.     nwtools.exe file.  The settings file (with an .nws extension) should
  137.     go in the Parameters box.  The settings file is the file that's
  138.     created when you "Save settings as..." from the Network pull-down
  139.     menu in NetWare Tools.  You can also choose to minimize the NetWare
  140.     Tools window by selecting "Start Minimized" in the Session tab of the
  141.     icon setup.
  142.  
  143.     This will give you a login dialogue window each time you start the
  144.     machine, and NetWare Tools will minimize the login window after you
  145.     enter your password.
  146.  
  147. **************
  148. How to create a login script for NetWare 3.11 servers
  149.  
  150.    There are two basic kinds of login scripts--system login scripts and
  151.    user login scripts.  The system login scripts are set up by the
  152.    network administrator and are used when each user logs in.  In
  153.    addition, you can set up individual user login scripts that run after
  154.    the system login script.  The user login scripts usually contain
  155.    drive mappings and other statements that apply only to a particular
  156.    user's environment.  One other thing to notice is that the OS/2
  157.    login script is different from the DOS login script.
  158.  
  159.    To create the system OS/2 login script:
  160.    1. From an OS/2 window, go to a drive that is mapped to the
  161.       SYS&colon.PUBLIC\OS2 volume, and type SYSCON.
  162.    2. Select "Supervisor Options" from the main menu.
  163.    3. From the Supervisor Options screen, select "System Login Scripts".
  164.    4. You should get an empty box that says "System Login Script" at
  165.       the top.  You can enter the login script commands here.
  166.    5. When you finish entering the commands, press the Esc key and
  167.       then press Enter.  Press Esc again to return to the main menu.
  168.  
  169.    To create an OS/2 user login script:
  170.    1. From an OS/2 window, go to a drive that is mapped to the
  171.       SYS&colon.PUBLIC\OS2 volume, and type SYSCON.
  172.    2. Select "User Information" from the main menu.
  173.    3. From the User Information screen, select the particular user name
  174.       you need.
  175.    4. Then select "Login Script".
  176.    5. You should get an empty box that says "User Login Script" across
  177.       the top.  You can enter the login script commands here.
  178.       NOTE:  You can copy a login script from one user to another.
  179.              After copying the login script from another user, be sure
  180.              to modify it as needed for the user's environment.
  181.    6. When you finish entering the commands, press the Esc key and
  182.       then press Enter to save the changes.
  183.  
  184. **************
  185. Sample OS/2 login scripts
  186.  
  187.    Sample System Login Script:
  188.  
  189.       WRITE "Good %GREETING_TIME, %LOGIN_NAME."
  190.       MAP DISPLAY OFF
  191.       MAP ERRORS OFF
  192.       IF LOGIN_NAME <> "SUPERVISOR" THEN BEGIN
  193.         MAP Z&colon.=NW_1/NSE&colon.NSEPRO
  194.       END
  195.       #CAPTURE Q=IBM4019 NFF NB
  196.       MAP DISPLAY ON
  197.       MAP
  198.  
  199.  
  200.    Sample User Login Script:
  201.  
  202.       MAP G&colon.=NW_1/SYS:
  203.       MAP H&colon.=NW_1/SYS&colon.SYSTEM
  204.       MAP P&colon.=NW_1/SYS&colon.PUBLIC
  205.       WRITE "Hello, %FULL_NAME"
  206.       #P&colon.\OS2\CAPTURE LPT1 Q=IBM4019 NFF NB
  207.  
  208.  
  209.    NOTE: The following commands are NOT supported in OS/2 login
  210.          scripts:
  211.            COMSPEC
  212.            DOS BREAK
  213.            MACHINE NAME
  214.  
  215.          Also, the following commands have limitations with OS/2
  216.          login script files:
  217.            EXIT     does not support file names
  218.            DRIVE    sets default for login process only
  219.            INCLUDE  must use the UNC pathname for the file
  220.            MAP      cannot map search drives.  Use OS/2 PATH and
  221.                     DPATH commands instead.
  222.            SET      sets the environment variable for the login
  223.                     process only.  Spawned processes inherit the
  224.                     variable, but the variable disappears when
  225.                     LOGIN terminates.
  226.  
  227.          See the Installation manual for NetWare Version 3.11,
  228.          Appendix A, for more information about the login script
  229.          commands.
  230.  
  231. **********
  232. Common Login Errors / Solutions
  233.  
  234.   Problem: If you want to keep the login window from coming up on
  235.            bootup, you can do the following.
  236.   Action:  1.  You should go into the CONFIG.SYS file and find the
  237.                line that looks something like the following:
  238.  
  239.                SET AUTOSTART=PROGRAMS,TASKLIST,FOLDERS,CONNECTIONS
  240.  
  241.                Remove the last option-- the ",CONNECTIONS" part of
  242.                this line to get:
  243.  
  244.                SET AUTOSTART=PROGRAMS,TASKLIST,FOLDERS
  245.  
  246.                This will get rid of the extra login screen that
  247.                does not work with NetWare requester logins.
  248.  
  249.  
  250.            2.  Also, add the line DIRECTORY SERVICES OFF to the
  251.                NetWare Requester part of the NET.CFG file if you
  252.                have a NetWare 3.11 or 3.12 server.
  253.  
  254.  
  255. ------------------------------------------------------------------------
  256. NetWare, NetWare Client for OS/2, and NetWare Requester for OS/2 are
  257. trademarks of Novell, Inc.
  258.  
  259. Thank you for calling Software Solution Services.  Regarding the problem
  260. reported to the support line, we feel that this information may assist
  261. you in resolving your problem.  If you still require assistance, please
  262. call 1-800-992-4777 again, and you will be connected to the appropriate
  263. support personnel.
  264.  
  265. IBM disclaims all warranties, whether expressed or implied, including
  266. without limitation, warranties of fitness and merchantability with
  267. respect to the information in this document.  By furnishing this
  268. document, IBM grants no licenses to any related patents or copyrights.
  269.  
  270. If you identify errors or have comments about this document, please let us
  271. know.  We will make every effort to correct errors and improve the
  272. quality of this document.
  273.  
  274. Please FAX your comments to&colon.
  275.  
  276. (512) 823-9495
  277. IBM
  278. Attn: CBR Express Team
  279.  
  280. Thanks!
  281.  
  282. *****
  283. LAST UPDATED 6/3/94
  284. (END)
  285.  
  286.  
  287. 12/31/99
  288.