gentoo auditd not logging?
Hello List,
i installed audit on a gentoo box.
in the auditd.log it shows logins via ssh:
type=LOGIN msg=audit(1413987302.466:14): pid=27091 uid=0 old-auid=4294967295 auid=0 old-ses=4294967295 ses=7 res=1
but in the logs i cant see failed logins.
my config for testing looks like this:
# First rule - delete all
# This is to clear out old rules, so we don't append to them. -D
# Feel free to add below this line. See auditctl man page
-a exclude,always -F msgtype=NETFILTER_CFG
-w /sbin/insmod -p x -k module_insertion
-w /etc/passwd -p wa -k passwd_changes
-w /var/log/auth.log -p wa -k logins
-w /etc/ssh/sshd_config -p warx -k sshd_config
# The following rule would cause all of the syscalls listed to be ignored in logging.
#-a exit,never -F arch=b32 -S read -S write -S open -S fstat -S mmap -S brk -S munmap -S nanosleep -S fcntl -S close -S dup2 -S rt_sigaction -S stat #-a exit,never -F arch=b64 -S read -S write -S open -S fstat -S mmap -S brk -S munmap -S nanosleep -S fcntl -S close -S dup2 -S rt_sigaction -S stat
# The following rule would cause the capture of all systems not caught above. # -a exit,always -S all
# Increase the buffers to survive stress events
-b 8192
# lock the audit configuration to prevent any modification of this file. -e 2
in auditd.log i cant see anything when i do cat on sshd_config or when open sshd_config in vim and save it. Nothing shown in the log.
do i missed something?
best regards
marko
Signature · 5 lines
zbfmail - Mittendrin statt nur Datei! OpenDKIM, SPF, DSPAM, Greylisting, POSTSCREEN, AMAVIS, Mailgateways Mailfiltering, SMTP Service, Spam Abwehr, MX-Backup, Mailserver Backup Redundante Mailgateways, HA Mailserver, Secure Mailserver
Quoted 7 lines · On Friday, October 24, 2014 03:15:39 PM Marko Weber | 8000 wrote:
i installed audit on a gentoo box.
in the auditd.log it shows logins via ssh:type=LOGIN msg=audit(1413987302.466:14): pid=27091 uid=0 old-auid=4294967295 auid=0 old-ses=4294967295 ses=7 res=1
but in the logs i cant see failed logins.
Actual failed logins would be a USER_LOGIN event. You should be able to run
aureport --start today --login --failed
to see them. Note that auditd is about like syslog in that it does not generate events, it records them. You may need to add --enable-audit when building a number of packages to get the right support in place.
-Steve