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