Re: Action if login happened

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

 



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)

_______________________________________________
Pam-list mailing list
Pam-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/pam-list

[Index of Archives]     [Fedora Users]     [Kernel]     [Red Hat Install]     [Linux for the blind]     [Gimp]

  Powered by Linux