I've been trying to figure this one out and it seems like a rather easier said than done situation. I am currently setting up a server that sends errors, failed logons, who accessed what and when, etc....
I'm trying to figure out how I can track a user if they try to make a permission change. Say Bob runs 'chmod 777 ' but he does not have the permission to change said file. So instead of the system telling him no he can't do that, it also throws back an error that I can see that an attempt was made. How can I get that error to be logged (if it isn't already) and where would that location be stored? /var/log/messages? OR, would I have to set up an auditctl rule for this to work like I want it too? Thank you all in advance