Action if login happened
- Subject: Action if login happened
- From: Sascha Ochsenknecht <s.ochsenknecht@xxxxxx>
- Date: Thu, 15 Jan 2009 20:38:22 +0100
- User-agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.8.1.19) Gecko/20081227 SUSE/2.0.0.19-0.1.2 Lightning/0.9 Thunderbird/2.0.0.19 Mnenhy/0.7.5.666
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 played a bit with pam_exec, but I'm not sure how to pass the
information to the command specified with the pam_exec module. I know
that I can get the username from the env PAM_USER. But the other
information?
Another question is in which pam config file (probably common-auth, this
is included by almost every other service) and at which position should
I put the pam_exec module?
Currently I didn't find a solution, maybe somebody can help me!?
Thanks in advance,
Sascha
_______________________________________________
Pam-list mailing list
Pam-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/pam-list
[Fedora Users]
[Kernel]
[Red Hat Install]
[Linux for the blind]
[Gimp]