home *** CD-ROM | disk | FTP | other *** search
- Here's a little tutorial on how to allow a user to log in from any workstation
- using a generic login floppy and still get access to the proper files and
- directories. This particular example uses NOS/AI and the VMD-NET/ARC ARCNET
- driver. Everything will work the same way using Artisoft's drivers. We also
- make use of Jon Marbry's FASTNET utility (available for download from the
- ARTISOFT BBS under the name LANUTILS). This file is optional, but it can
- really speed up the login process. The third file mentioned here is called
- ANSWER, and is included in this ZIP.
-
- The idea here is to keep all the AUTOEXEC.BAT'S in a common directory on a
- server. This greatly simplifies the system administrator's job because he
- can keep track of everyone's AUTOEXEC files and prevent the users from
- changing their logins without authorization.
-
- First, create a directory called LOGIN on a server. Share this directory as
- a resource under the alias LOGIN. Give all users access to this directory.
- Now, put each user's AUTOEXEC.BAT file in this directory, but name each file
- by the user name. Example: RICK.BAT, CYNTHIA.BAT, etc. Also copy NET.EXE and
- FASTNET.EXE to this directory. For added security, do not allow any user
- except the system administrator write access to these files.
-
- Now, create a bootable floppy with the fillowing files on it:
- COMMAND.COM (obviously)
- CONFIG.SYS
- AUTOEXEC.BAT
- NET.EXE
- REDIR.EXE
- ANET.EXE (or whatever low level driver you use-LANBIOS,etc.)
- STATION.EXE (Part of ANET- kills abandoned sessions if a workstation
- is rebooted without logging off)
- ANSWER.COM (Puts the user's name in an environment variable)
-
- Here are some sample files-
- ==========================================================================
- CONFIG.SYS (nothing special here- just your usual CONFIG.SYS)
-
- stacks=0,0 (for DOS 3.3 or 4.0)
- fcbs=16,8
- buffers=30
- files=50
- lastdrive=Z
- ==========================================================================
- AUTOEXEC.BAT- This one goes on the floppy and is the SAME for ALL users
-
- @echo off
- prompt $P$G
- echo One moment please......
- anet /C=24 /I=5 /M=D000 /P=2E0 /S=8 /H
- REM THE ARCNET NETBIOS DRIVER- YOU CAN USE LANBIOS HERE INSTEAD
- station FRONT-AT SERVER
- REM PART OF THE ARCNET DRIVER- KILLS ABANDONED SESSIONS
- redir FRONT-AT buffers=2 size=4096
- :oops
- cls
- answer Please log in:
- REM GET THE USERNAME AND PUT IT IN AN ENVIRONMENT VARIABLE CALLED ANSWER
- cls
- net login \\SERVER %ANSWER% ^"Password: "
- REM LOG IN TO SERVER USING VARIABLE AS USERNAME, AND PROMPTING FOR PASSWORD
- if errorlevel 1 goto oops
- REM IF YOU SCREWED UP, TRY AGAIN
- net use l: \\electronics\login
- REM MAKE THE L: DRIVE POINT TO THE DIRECTORY WHERE ALL THE AUTOEXEC'S ARE
- l:
- REM GO TO THE DIRECTORY WHERE ALL THE AUTOEXEC'S ARE
- fastnet %ANSWER%
- REM GET THE AUTOEXEC CALLED FOR IN THE ANSWER VARIABLE AND RUN IT
- REM FASTNET IS PART OF JON MARBRY'S LANUTILS.
- ============================================================================
- User's AUTOEXEC.BAT file (in this case called RICK.BAT). These files go in
- the server's LOGIN directory and are DIFFERENT for each user.
-
- net use c: \\SERVER\C-DRIVE
- net use d: \\SERVER\D-DRIVE
- net use e: \\SERVER\E-DRIVE
- net use f: \\SERVER\F-DRIVE
- net use lpt2 \\SERVER\@LASER
- net lpt timeout 10
- net clock \\SERVER
- net show
- c:
- cd\menu
- hdm -n -wc:\RICK -tc:\RICK -ec:\
- REM THE LAST LINE CALLS THE MENU WE USE, A SHAREWARE SYSTEM CALLED
- REM "HARD DISK MENU"
-
- ============================================================================
-
- This information is provided courtesy of HATCHERY SYSTEMS, Birmingham, Al.
- We are network resellers and consultants specializing in LANTASTIC NOS/AI.
- We offer high performance NETBIOS drivers for use with LANTASTIC on ARCNET
- and ETHERNET. Our NETBIOS supports diskless remote booting using generic
- ARCNET or ETHERNET cards. Our diskless boot allows individual CONFIG.SYS
- and AUTOEXEC.BAT files for each user.
-
- We also have modem sharing software which allows you to use modems in any
- workstation across a LANTASTIC net. Our modem sharing software does not
- require specially modified communications software.
-
- For further information, call us toll-free at 1-800-326-IDEA
-
- This file is the property of HATCHERY SYSTEMS and may be distributed freely
- without modification in its entirety. The files ANSWER.DOC and ANSWER.COM
- are PUBLIC DOMAIN. They were written by another author and are included here
- for your convenience. HATCHERY SYSTEMS accepts no responsibility for any
- problems encountered by using information provided here.
-
- We would like to hear your suggestions and comments. Leave me a message on
- the ARTISOFT BBS (RICK CURL) or give us a call at 1-800-326-IDEA
-