From owner-freebsd-hackers Wed Apr 23 04:47:51 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id EAA25654 for hackers-outgoing; Wed, 23 Apr 1997 04:47:51 -0700 (PDT) Received: from panda.hilink.com.au (panda.hilink.com.au [203.2.144.5]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id EAA25649 for ; Wed, 23 Apr 1997 04:47:47 -0700 (PDT) Received: (from danny@localhost) by panda.hilink.com.au (8.8.5/8.7.3) id VAA16395; Wed, 23 Apr 1997 21:47:28 +1000 (EST) Date: Wed, 23 Apr 1997 21:47:28 +1000 (EST) From: "Daniel O'Callaghan" To: Alex Belits cc: Adrian Chadd , 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, Alex Belits wrote: > 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. That won't work for scriptless PAP ppp logins which don't have a shell. Danny