On a linux box that there is some process regularly changing permissions on directories and files, roughly daily. This is not a process that I set up and I have no idea what it is.
I have root access and I can easily change permissions manually to get access back but it is a bit annoying.
Is there an way to see a list of processes that have last touched a file? Or alternatively how would I go about logging process activity on the file.
On a Fedora system, you can use:
It’s in the
auditpackage, if you don’t have that installed, thensudo yum install auditThe output goes into
/var/log/audit/audit.login the form:It’s a bit dense, but note the
msg=audit(###)strings line up across multiple lines.-Farch=b32/-Farch=b64, so it seems that there is some possible weirdness about 32-bit-vs-64-bit syscalls, so if you don’t get an audit hit, that might be why. I’ve never really seen this bit before, but I haven’t really run any 32-bit processes since the Athlon era, so I can’t speak to it very well.