*BSD News Article 60277


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!nntp.coast.net!howland.reston.ans.net!newsfeed.internetmci.com!tank.news.pipex.net!pipex!lade.news.pipex.net!pipex!tube.news.pipex.net!pipex!dish.news.pipex.net!pipex!handbag.tecc.co.uk!parody.tecc.co.uk!not-for-mail
From: james@parody.tecc.co.uk (James Raynard)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: logging question
Date: 27 Jan 1996 00:32:14 -0000
Organization: A FreeBSD box
Lines: 21
Message-ID: <4ebrqe$335@parody.tecc.co.uk>
References: <4e9nb2$7bt@central.server.swt.edu>
NNTP-Posting-Host: localhost

In article <4e9nb2$7bt@central.server.swt.edu>,
David Marcoux <dmarcoux@raptor.business.swt.edu> wrote:
>
>I would like to log requests to the services that I am not running.
>
>For instance, I have the rlogin line commented out of my /etc/inetd.conf
>For in
>However, I would like to log all incoming requests to that service.

How about un-commenting the lines in question, and editing them so that,
instead of firing up the service, they call a script that updates a log
file and prints out an appropriate message (just as a courtesy to let 
people know why they can't rlogin in). 

(To minimise potential security holes, edit the user field to something 
other than root. Running scripts with super-user permissions is a very 
bad idea!)

James
-- 
Segmentation fault (core dumped): cannot find file '.signature'