home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / novell / 11771 < prev    next >
Encoding:
Internet Message Format  |  1993-01-21  |  1.4 KB

  1. Path: sparky!uunet!munnari.oz.au!ariel.ucs.unimelb.EDU.AU!ucsvc.ucs.unimelb.edu.au!u5533129
  2. From: u5533129@ucsvc.ucs.unimelb.edu.au
  3. Newsgroups: comp.sys.novell
  4. Subject: Re: Toward a more persistent login.exe
  5. Message-ID: <1993Jan22.084550.4445@ucsvc.ucs.unimelb.edu.au>
  6. Date: 22 Jan 93 08:45:50 +1100
  7. References: <mr.727477099@ogre> <1993Jan19.200359.250@indyvax.iupui.edu>
  8. Organization: The University of Melbourne
  9. Lines: 29
  10.  
  11. In article <1993Jan19.200359.250@indyvax.iupui.edu>, harvey@indyvax.iupui.edu writes:
  12. > In article <mr.727477099@ogre>, mr@ogre.cica.indiana.edu (Michael Regoli) writes:
  13. >> Has anyone built a little DOS batch-file wrapper to login.exe that
  14. >> calls login.exe AGAIN when a password is invalid?  I've not been able
  15. >> to figure out a sure-fire batch file that would do this.  Testing for
  16. >> the environment variable %NAME% is fine--because it tests true for a
  17. >> login--just as long as the same user logs in to the same machine every
  18. >> day (e.g., "IF '%NAME%'=='JOE' goto success"), but what if Suzie sits
  19. >> down at Joe's machine?
  20. > LOGIN sets the errorlevel to zero if the login is successful, otherwise to
  21. > something else.  So something like:
  22. > if errorlevel 1 goto logfail
  23. > works nicely.
  24.  
  25. It works nicely until something in you login script sets the errorlevel.
  26.  
  27. Another solution is
  28.  
  29. :login
  30. echo.
  31. login
  32. if not exist sys:\public\*.* goto login
  33.  
  34. which works provided the user has scan priveledges in sys:\public.
  35.  
  36. Peter Summers
  37.