Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
From: "Thommy M. Malmström" <Thommy.M.Malmstrom@swipnet.se>
Subject: Re: ftp logging - how ?
Date: 2000/05/03	[thread overview]
Message-ID: <39109E47.40AB1DCC@swipnet.se> (raw)
In-Reply-To: 391046bf.0@nnrp1.news.uk.psi.net

[-- Attachment #1: Type: text/plain, Size: 2408 bytes --]

fred wrote:
> 
> I need to be able to log all ftp accesses (including what files pulled)  to
> both a Solaris 7 box and a tru64 4f box.
> 
> Can anyone help or point me in the right direction please
> 
> E-Mail asharris@ordsvy.gov.uk please

You can try this (from sunsolve.sun.com INFODOC ID: 11991):

BTW, always try SunSolve first, it really has a lot of good information...

/Thommy M.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 

   3.3: How to Start Logging with FTP?

  You can log ftpd connections, which tell you which
  hosts have connected to your system using this procedure.

  STEP 1: add the -l option to ftpd in the
  /etc/inetd.conf file as follows:

    ftp    stream  tcp  nowait  root  /usr/sbin/in.ftpd  in.ftpd -l

  (This is the line from the Solaris inetd.conf  SunOS is very
  similar, though the location of in.ftpd is different.)

  STEP 2:
  You will also need to modify syslog.conf by adding the following
  line (make sure you use TABs and not SPACES - especially if you cut
  and paste this line):

    daemon.info                   /var/adm/ftp.log

  STEP 3:
  Create the /var/adm/ftp.log file:
  touch /var/adm/ftp.log

  STEP 4:
  Restart both inetd and the syslogd:

    %%%% kill -HUP inetd-pid
    %%%% kill -HUP syslog-pid

  ftp should begin logging to /var/adm/ftp.log immediately.

  If you have other daemons which also log information messages, you
  will find that they get logged to this file as well. If this is the
  case, you will probably want to turn off informational messages on
  your other daemons  by default standard Solaris daemons will not log
  informational messages.

  You can view more detail on ftp logins to an FTP server.
  SunOS ftpd logs into /var/adm/wtmp.
  Solaris ftpd logs into /var/adm/wtmpx.
  You do NOT need to enable the ftpd logging described above.
  You can view this detailed info using the "last" command.
  Here is some example output from last   grep ftp on Solaris:

  hackley   ftp          mercedes         Tue Apr  2 10:52 - 10:52  (00:00)
  hackley   ftp          mercedes         Thu Mar 28 10:30 - 10:30  (00:00)

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
--
Thommy M. Malmstr�m
Hardeberga Kyrkby 415
SE-247 91 S�dra Sandby, Sweden

http://home.swipnet.se/greco
mailto:Thommy.M.Malmstrom@swipnet.se

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Card for Thommy M. Malmstr�m --]
[-- Type: text/x-vcard; charset=us-ascii; name="Thommy.M.Malmstrom.vcf", Size: 270 bytes --]

begin:vcard 
n:Malmstr�m;Thommy M.
tel;home:046 990 57
x-mozilla-html:FALSE
url:http://home.swipnet.se/greco
adr:;;Hardeberga Kyrkby 415;S�dra Sandby;Scania;SE-247 91;Sweden
version:2.1
email;internet:Thommy.M.Malmstrom@swipnet.se
fn:Thommy M. Malmstr�m
end:vcard

      parent reply	other threads:[~2000-05-03  4:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-05-03  4:00 ftp logging - how ? fred
2000-05-03  4:00 ` Logan Shaw
2000-05-09  4:00   ` Lussan, Dung [MLV:0000:EXCH]
2000-05-03  4:00 ` Gopala
2000-05-03  4:00 ` Javier de Burgos
2000-05-03  4:00 ` Thommy M. Malmström [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox