My database is failing to replicate and the only clue in the error log is Operation Not Permitted
, which I am guessing is file access permission failure either on donar or joiner. Is there any file that I could tail
to see what exactly files does the user/process is trying read/write/execute?
The
auditd(8)
daemon provides the functionality you request in your question. It is configured in the/etc/audit/auditd.conf
file, and its syntax is described in theauditd.conf(5)
manual page.You need to install and enable the daemon, and configure the
/etc/audit/audit.rules
to audit those events you consider relevant. And example from theaudit.rules(7)
manpage:Read the
auditctl(8)
manpage for an explanation of all the options used in the examples.For later analysis/reporting, you can use the
ausearch(8)
andaureport(8)
tools.