home *** CD-ROM | disk | FTP | other *** search
/ Hall of Fame / HallofFameCDROM.cdr / lant / howto.arc / HOWTO.TXT < prev   
Encoding:
Text File  |  1990-12-31  |  4.7 KB  |  110 lines

  1. Here's a little tutorial on how to allow a user to log in from any workstation
  2. using a generic login floppy and still get access to the proper files and
  3. directories.  This particular example uses NOS/AI and the VMD-NET/ARC ARCNET
  4. driver.  Everything will work the same way using Artisoft's drivers.  We also
  5. make use of Jon Marbry's FASTNET utility (available for download from the 
  6. ARTISOFT BBS under the name LANUTILS).  This file is optional, but it can
  7. really speed up the login process.  The third file mentioned here is called
  8. ANSWER, and is included in this ZIP.
  9.  
  10. The idea here is to keep all the AUTOEXEC.BAT'S in a common directory on a
  11. server.  This greatly simplifies the system administrator's job because he
  12. can keep track of everyone's AUTOEXEC files and prevent the users from
  13. changing their logins without authorization. 
  14.  
  15. First, create a directory called LOGIN on a server.  Share this directory as
  16. a resource under the alias LOGIN.  Give all users access to this directory.
  17. Now, put each user's AUTOEXEC.BAT file in this directory, but name each file
  18. by the user name. Example:  RICK.BAT, CYNTHIA.BAT, etc.  Also copy NET.EXE and
  19. FASTNET.EXE to this directory.  For added security, do not allow any user
  20. except the system administrator write access to these files.
  21.  
  22. Now, create a bootable floppy with the fillowing files on it:
  23. COMMAND.COM (obviously)
  24. CONFIG.SYS
  25. AUTOEXEC.BAT
  26. NET.EXE
  27. REDIR.EXE
  28. ANET.EXE (or whatever low level driver you use-LANBIOS,etc.)
  29. STATION.EXE (Part of ANET- kills abandoned sessions if a workstation
  30.              is rebooted without logging off)
  31. ANSWER.COM (Puts the user's name in an environment variable)
  32.  
  33. Here are some sample files-
  34. ==========================================================================
  35. CONFIG.SYS (nothing special here- just your usual CONFIG.SYS)
  36.  
  37. stacks=0,0 (for DOS 3.3 or 4.0)
  38. fcbs=16,8
  39. buffers=30
  40. files=50
  41. lastdrive=Z
  42. ==========================================================================
  43. AUTOEXEC.BAT- This one goes on the floppy and is the SAME for ALL users
  44.  
  45. @echo off
  46. prompt $P$G
  47. echo One moment please......
  48. anet /C=24 /I=5 /M=D000 /P=2E0 /S=8 /H
  49. REM THE ARCNET NETBIOS DRIVER- YOU CAN USE LANBIOS HERE INSTEAD
  50. station FRONT-AT SERVER
  51. REM PART OF THE ARCNET DRIVER- KILLS ABANDONED SESSIONS
  52. redir FRONT-AT buffers=2 size=4096
  53. :oops
  54. cls
  55. answer Please log in: 
  56. REM GET THE USERNAME AND PUT IT IN AN ENVIRONMENT VARIABLE CALLED ANSWER
  57. cls
  58. net login \\SERVER %ANSWER% ^"Password: "
  59. REM LOG IN TO SERVER USING VARIABLE AS USERNAME, AND PROMPTING FOR PASSWORD
  60. if errorlevel 1 goto oops
  61. REM IF YOU SCREWED UP, TRY AGAIN
  62. net use l: \\electronics\login
  63. REM MAKE THE L: DRIVE POINT TO THE DIRECTORY WHERE ALL THE AUTOEXEC'S ARE
  64. l:
  65. REM GO TO THE DIRECTORY WHERE ALL THE AUTOEXEC'S ARE
  66. fastnet %ANSWER%
  67. REM GET THE AUTOEXEC CALLED FOR IN THE ANSWER VARIABLE AND RUN IT
  68. REM FASTNET IS PART OF JON MARBRY'S LANUTILS. 
  69. ============================================================================
  70. User's AUTOEXEC.BAT file (in this case called RICK.BAT).  These files go in
  71. the server's LOGIN directory and are DIFFERENT for each user.
  72.  
  73. net use c: \\SERVER\C-DRIVE
  74. net use d: \\SERVER\D-DRIVE
  75. net use e: \\SERVER\E-DRIVE
  76. net use f: \\SERVER\F-DRIVE
  77. net use lpt2 \\SERVER\@LASER
  78. net lpt timeout 10
  79. net clock \\SERVER
  80. net show
  81. c:
  82. cd\menu
  83. hdm -n -wc:\RICK -tc:\RICK -ec:\
  84. REM THE LAST LINE CALLS THE MENU WE USE, A SHAREWARE SYSTEM CALLED
  85. REM "HARD DISK MENU"
  86.  
  87. ============================================================================
  88.  
  89. This information is provided courtesy of HATCHERY SYSTEMS, Birmingham, Al.
  90. We are network resellers and consultants specializing in LANTASTIC NOS/AI.
  91. We offer high performance NETBIOS drivers for use with LANTASTIC on ARCNET
  92. and ETHERNET.  Our NETBIOS supports diskless remote booting using generic
  93. ARCNET or ETHERNET cards.  Our diskless boot allows individual CONFIG.SYS
  94. and AUTOEXEC.BAT files for each user. 
  95.  
  96. We also have modem sharing software which allows you to use modems in any
  97. workstation across a LANTASTIC net.  Our modem sharing software does not
  98. require specially modified communications software.
  99.  
  100. For further information, call us toll-free at 1-800-326-IDEA
  101.  
  102. This file is the property of HATCHERY SYSTEMS and may be distributed freely
  103. without modification in its entirety.  The files ANSWER.DOC and ANSWER.COM
  104. are PUBLIC DOMAIN.  They were written by another author and are included here
  105. for your convenience.  HATCHERY SYSTEMS accepts no responsibility for any
  106. problems encountered by using information provided here.
  107.  
  108. We would like to hear your suggestions and comments. Leave me a message on
  109. the ARTISOFT BBS (RICK CURL) or give us a call at 1-800-326-IDEA
  110.