From owner-freebsd-hackers Wed Apr 23 03:23:32 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id DAA21339 for hackers-outgoing; Wed, 23 Apr 1997 03:23:32 -0700 (PDT) Received: from genesis.atrad.adelaide.edu.au (genesis.atrad.adelaide.edu.au [129.127.96.120]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id DAA21334 for ; Wed, 23 Apr 1997 03:23:29 -0700 (PDT) Received: (from msmith@localhost) by genesis.atrad.adelaide.edu.au (8.8.5/8.7.3) id TAA21431; Wed, 23 Apr 1997 19:53:17 +0930 (CST) From: Michael Smith Message-Id: <199704231023.TAA21431@genesis.atrad.adelaide.edu.au> Subject: Re: Best way to hook into user logins / logouts ? In-Reply-To: from Adrian Chadd at "Apr 23, 97 05:28:27 pm" To: adrian@staff.psinet.net.au (Adrian Chadd) Date: Wed, 23 Apr 1997 19:53:16 +0930 (CST) Cc: abelits@phobos.illtel.denver.co.us, freebsd-hackers@freebsd.org X-Mailer: ELM [version 2.4ME+ PL28 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Adrian Chadd stands accused of saying: > > Logging in is easy (I was thinking /etc/profile :) the thing is when > people logout .. I have some people on this box with real shells (admins), > and I have others with slip, others with ppp, and others with remote > logins into a shell machine. I'd rather hack one thing than hack lots (and > have to keep hacking everytime we add something new:) > You probably want to hook telnetd, rlogind, sshd, init and xdm, as these are present before and after a user logging in. (Maybe getty rather than init, depending on preference.) -- ]] Mike Smith, Software Engineer msmith@gsoft.com.au [[ ]] Genesis Software genesis@gsoft.com.au [[ ]] High-speed data acquisition and (GSM mobile) 0411-222-496 [[ ]] realtime instrument control. (ph) +61-8-8267-3493 [[ ]] Unix hardware collector. "Where are your PEZ?" The Tick [[