Linux – How todentify an anonymous process that’s changing a system setting

centos7debugginglinuxprocess

I see an anonymous process changing the time of my systemtime to UTC every 80 sec. Using the journalctl -f command I only see a message that says
'systemd[1]: time has been changed' but it doesn't identify which process is doing that.

I know that any one who changes system time has to edit /etc/localtime file. Is there anyway I can find that process and let it leaves traces, so that I can identify what process it is ?

Best Answer

I think you want to take a look at auditd. The following document is from Redhat, but is also applicable to CentOS 7:

How to monitor permission, ownership or any other change to a particular directory or file

Related Topic