Action if login happened
Thorsten Kukuk
kukuk at suse.de
Thu Jan 15 21:56:28 UTC 2009
On Thu, Jan 15, Sascha Ochsenknecht wrote:
> Hi,
>
> I would like to execute a command whenever somebody tries to login on a
> machine. The command should have following information (via env or
> something else):
>
> a) username
> b) login successful / login failed
> c) if failed -> why? (password wrong or non-existing username)
I think what you are looking for is "audit". Use the audit framework
and a Linux-PAM version which is compiled with audit enabled.
Thorsten
--
Thorsten Kukuk, Project Manager/Release Manager SLES
SUSE LINUX Products GmbH, Maxfeldstr. 5, D-90409 Nuernberg
GF: Markus Rex, HRB 16746 (AG Nuernberg)
More information about the Pam-list
mailing list