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

  1. Newsgroups: comp.unix.ultrix
  2. Path: sparky!uunet!mcsun!inesc.inesc.pt!dec4pt.puug.pt!unl!unl!spa
  3. From: spa@fct.unl.pt (Salvador Pinto Abreu)
  4. Subject: Re: Who is using my ftpd
  5. In-Reply-To: kod@ktas.dk's message of 11 Aug 92 14:21:40 GMT
  6. Message-ID: <SPA.92Aug12123932@khore-dump.fct.unl.pt>
  7. Lines: 24
  8. Sender: news@fct.unl.pt (USENET News System)
  9. Organization: Universidade Nova de Lisboa -- Lisbon, Portugal
  10. References: <1992Aug11.142140.22187@ktas.dk>
  11. Date: Wed, 12 Aug 1992 11:39:40 GMT
  12. Lines: 24
  13.  
  14. In article <1992Aug11.142140.22187@ktas.dk> kod@ktas.dk (Kwame Danquah) writes:
  15.  
  16. > With the use of ps -ax I can find out who has assess to our system. Is
  17. > there a command one can use to find out who is having FTP connection to
  18. > our system?
  19.  
  20. You could for instance use:
  21.  
  22.     netstat | fgrep ftp
  23.  
  24. and watch for lines like:
  25.  
  26. tcp        0      0  zen.fct.unl.pt.ftp     khore-dump.fct.u.4470  ESTABLISHED
  27.  
  28. with col.4 (Local Address) ending with .ftp, col.5 (Foreign Address)
  29. will tell you who's connected to your ftp daemon right now (ie, what
  30. host).
  31.  
  32. Another possibility is to append "-l" to the ftpd line in
  33. /etc/inetd.conf, so that ftp connections are logged.
  34.  
  35. Alternatively you could replace your ftpd with a "nicer" one that does
  36. more logging, such as the one on wuarchive.wustl.edu.
  37. --
  38.