Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Apr 1997 21:47:28 +1000 (EST)
From:      "Daniel O'Callaghan" <danny@panda.hilink.com.au>
To:        Alex Belits <abelits@phobos.illtel.denver.co.us>
Cc:        Adrian Chadd <adrian@staff.psinet.net.au>, freebsd-hackers@freebsd.org
Subject:   Re: Best way to hook into user logins / logouts ?
Message-ID:  <Pine.BSF.3.91.970423214653.10264N-100000@panda.hilink.com.au>
In-Reply-To: <Pine.LNX.3.95.970423021141.26011A-100000@phobos.illtel.denver.co.us>

next in thread | previous in thread | raw e-mail | index | archive | help


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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.91.970423214653.10264N-100000>