Hello,
I have successfully configured 'auditd' and also 'auditdistd', but I've got one problem.
Let me describe ...
1. I have disabled root access via SSH, and disallowed 'su -', so only sudo for couple of admins is allowed
2. I've configured to audit also file access (create, delete, modify, read, ...)
3. Everything works fine ... but ... !!!!
!!!! .... but .... if admin restart service via 'sudo service <name> restart' or '/etc/rc.d/<name> ...
then the audit logs everything configured for user which runs service via 'sudo'.
f.e. if 'sudo service postfix restart' is done, service runs under postfix user as it should but auditd logs events for postfix process (file access) under user which executed this 'sudo' command, so every file access postfix does (mail creation, mail open ... etc.) is logged as user activity. (I've tired also 'su -' - I allowed it for test, but the behaviour of audit is the same as for sudo command)
Is it possible to solve this? To make some exceptions or what to do? I'd like to monitor sysadmins work on servers but if they restart service than it should be the last audit log (they executed something and that's all).
Thanks for every help.
Marek
I have successfully configured 'auditd' and also 'auditdistd', but I've got one problem.
Let me describe ...
1. I have disabled root access via SSH, and disallowed 'su -', so only sudo for couple of admins is allowed
2. I've configured to audit also file access (create, delete, modify, read, ...)
3. Everything works fine ... but ... !!!!
!!!! .... but .... if admin restart service via 'sudo service <name> restart' or '/etc/rc.d/<name> ...
then the audit logs everything configured for user which runs service via 'sudo'.
f.e. if 'sudo service postfix restart' is done, service runs under postfix user as it should but auditd logs events for postfix process (file access) under user which executed this 'sudo' command, so every file access postfix does (mail creation, mail open ... etc.) is logged as user activity. (I've tired also 'su -' - I allowed it for test, but the behaviour of audit is the same as for sudo command)
Is it possible to solve this? To make some exceptions or what to do? I'd like to monitor sysadmins work on servers but if they restart service than it should be the last audit log (they executed something and that's all).
Thanks for every help.
Marek