From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII X-Google-Thread: fee84,101d2bcda6d56222 X-Google-Attributes: gidfee84,public X-Google-Thread: f678f,101d2bcda6d56222 X-Google-Attributes: gidf678f,public X-Google-Thread: 11035d,101d2bcda6d56222 X-Google-Attributes: gid11035d,public From: Thommy M. =?iso-8859-1?Q?Malmstr=F6m?= Subject: Re: ftp logging - how ? Date: 2000/05/03 Message-ID: <39109E47.40AB1DCC@swipnet.se>#1/1 X-Deja-AN: 618849817 References: <391046bf.0@nnrp1.news.uk.psi.net> X-Accept-Language: en Content-Type: multipart/mixed; boundary="------------72EF4354497703825F40B0D0" X-Complaints-To: news-abuse@swip.net X-Trace: nntpserver.swip.net 957386568 212.151.92.143 (Wed, 03 May 2000 22:42:48 MET DST) Organization: A Customer of Tele2 MIME-Version: 1.0 NNTP-Posting-Date: Wed, 03 May 2000 22:42:48 MET DST Newsgroups: comp.unix.osf.misc,comp.unix.osf.osf1,comp.unix.solaris This is a multi-part message in MIME format. --------------72EF4354497703825F40B0D0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit 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 --------------72EF4354497703825F40B0D0 Content-Type: text/x-vcard; charset=us-ascii; name="Thommy.M.Malmstrom.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Thommy M. Malmstr�m Content-Disposition: attachment; filename="Thommy.M.Malmstrom.vcf" 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 --------------72EF4354497703825F40B0D0--