From owner-freebsd-hackers Wed Apr 23 02:13:00 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id CAA18472 for hackers-outgoing; Wed, 23 Apr 1997 02:13:00 -0700 (PDT) Received: from phobos.illtel.denver.co.us (abelits@phobos.illtel.denver.co.us [207.33.75.1]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id CAA18462 for ; Wed, 23 Apr 1997 02:12:55 -0700 (PDT) Received: from localhost (abelits@localhost) by phobos.illtel.denver.co.us (8.8.5/8.6.9) with SMTP id CAA26516; Wed, 23 Apr 1997 02:16:58 -0700 Date: Wed, 23 Apr 1997 02:16:57 -0700 (PDT) From: Alex Belits To: Adrian Chadd cc: freebsd-hackers@freebsd.org Subject: Re: Best way to hook into user logins / logouts ? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Wed, 23 Apr 1997, Adrian Chadd wrote: > Hi. > > For what I'm working on I need to hook into when users login and logout. > The "best" way I can find currently is hooking into the wtmp updates in > libc (especially for the logouts), does anyone know any better ways? That will be completely broken for xterm. Actually it all depends on what "login" is, and for all imaginable needs you can use /etc/profile or wrapper as user shell (and defined in /etc/shells) that exec's real shell. -- Alex