Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Apr 1997 17:28:27 +0800 (WST)
From:      Adrian Chadd <adrian@staff.psinet.net.au>
To:        Alex Belits <abelits@phobos.illtel.denver.co.us>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Best way to hook into user logins / logouts ?
Message-ID:  <Pine.LNX.3.93.970423171446.4183A-100000@staff.psinet.net.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
> > 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.

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:)

Adrian.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.3.93.970423171446.4183A-100000>