Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

File transfer script.. Help!

0 views
Skip to first unread message

NGAI Hing On

unread,
Sep 24, 1996, 3:00:00 AM9/24/96
to

Hi there,

I would like to know how to write a shell script
for monitoring/ loging the users of doing the
file transfer. For example, a log file will
be created everyday and log all the file transfer
information including the source and destination
filenames, directories as well as the time of
the file transfer. The script is mainly for the
security purpose as I have to release some
data file for users to read but not suppose to
be copy by the users.

Any suggestion will be highly appreciated.

Dominic


w...@actrix.gen.nz

unread,
Sep 29, 1996, 3:00:00 AM9/29/96
to

Hi,

IRIX logs ftp transfers in /var/adm/SYSLOG. It specifies the remote machine
and I think the user concerned (I can't remember). Other flavours of UNIX
are probably similar although the equivalent file may be called something
like /usr/adm/syslog.

Therefore a command like

grep ftp /var/adm/SYSLOG > filename

would probably do the trick.

Regards,

Warwick
`[1;32;44mNet-Tamer V 1.04 - Test Drive


Nick O'Brien

unread,
Oct 4, 1996, 3:00:00 AM10/4/96
to

w...@actrix.gen.nz wrote:


: On 24 Sep 1996 hongai said:
: >Hi there,
: >I would like to know how to write a shell script
: >for monitoring/ loging the users of doing the

[snip]

: IRIX logs ftp transfers in /var/adm/SYSLOG. It specifies the remote machine


: and I think the user concerned (I can't remember). Other flavours of UNIX
: are probably similar although the equivalent file may be called something
: like /usr/adm/syslog.

With Digital Unix the standard ftpd comes with a -l (log) option so you
can just specify this in your /etc/inetd.conf, kill -HUP the inetd
process, and away you go. Again this logs messages to syslog.

Rgds.,

Nick.

--
# Nick O'Brien Computer Technician "It gives me a headache just to #
# Canterbury Christ Church College think down to your level", Marvin #
# Phone: +44 1227 782468 the Paranoid Android, HHGTTG #
# Email:ni...@cant.ac.uk Web:http://www.cant.ac.uk/staff/nick/home.html #

0 new messages