Skip to contentSkip to conversation

linux pam audit

DISCUSSION Thomas Wang 2 participants 2 messages Aug 22, 2007

lore
Share & tools
lore
#0 lore raw

Hi all,
Is it possible to redirect the log messages of a certain PAM Service into a special file.

I have for example a PAM service "cdsrv" whose messages are all going to /var/log/messages. But i want all the messages of the PAM service "cdsrv" (and only these) in a file /var/log/cdsrv.log.

Is that possible, some magic with /etc/syslog.conf maybe?

Thanks in advance,
tom

#1 lore raw
Quoted 2 lines · On Wednesday 22 August 2007 02:26:55 Thomas Wang wrote:

Is it possible to redirect the log messages of a certain PAM Service into a special file.

If you are not running the audit daemon and you are running rsyslog, you should be able to use regular expressions to match messages and send them to a file of your choice.

-Steve