[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Action if login happened



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)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]