home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / ultrix / 6379 < prev    next >
Encoding:
Text File  |  1992-08-20  |  1.7 KB  |  41 lines

  1. Newsgroups: comp.unix.ultrix
  2. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!mips!decwrl!pa.dec.com!decuac!hussar.dco.dec.com!mjr
  3. From: mjr@hussar.dco.dec.com (Marcus J. Ranum)
  4. Subject: Re: There have been 243 unsuccessful login attempts on your account
  5. Message-ID: <1992Aug21.022703.11356@decuac.dec.com>
  6. Sender: news@decuac.dec.com (USENET News System)
  7. Nntp-Posting-Host: hussar.dco.dec.com
  8. Organization: Digital Equipment Corporation, Washington ULTRIX Resource Center
  9. References: <1992Aug10.045511.27362@usage.csd.unsw.OZ.AU> <ROUILJ.92Aug20161834@dl5000.bc.edu>
  10. Date: Fri, 21 Aug 1992 02:27:03 GMT
  11. Lines: 28
  12.  
  13. rouilj@dl5000.bc.edu (John P. Rouillard) writes:
  14.  
  15. >If you are running LAT or DECnet, then I think you are SOL. I haven't
  16. >found any way of making those things cough up info about every connect
  17. >8-(.  This is a large portion of the reason I want to get rid of them
  18. >from the machines I administer 8-).
  19.  
  20.     It's actually pretty easy to get who is coming in over DECnet,
  21. but writing a weenie little tool that does a getenv("REMHOST") and
  22. getenv("USERNAME") prints the values, and then turns around and execs
  23. dlogind. Use ncp to define that program in the executor or whatever
  24. it's called and replace dlogind with it. Should do the trick. LAT comes
  25. in through a tty line, but there's a magic way of grabbing the terminal
  26. server name using:
  27.  
  28.         struct ltattyi ltattyi;
  29.         ioctl(0, LIOCTTYI, <attyi);
  30.  
  31.     and the value of:
  32.                  ltattyi.lta_server_name
  33.  
  34.     Since my firewall doesn't run LAT, I never made these changes. I
  35. leave it as an exercise to the reader. ;)
  36.  
  37.     It you want an excuse to hate LAT or DECnet, there are loads of
  38. better ones to use than just the logging. ;)
  39.  
  40. mjr.
  41.