I have two systems running ddclient to make use of dynamic domains.
Both of them with Opensuse 42.3.
Today I detected a dead ddclient service in one of them, while I was trying to recover it I tested the other system and I saw it was dead too.
The log was
2018-11-08T17:46:12.287376+01:00 tutatis systemd[1]: Starting A Perl Client Used To Update Dynamic DNS...
2018-11-08T17:46:12.288911+01:00 tutatis touch[12726]: /bin/touch: cannot touch '/var/cache/ddclient/ddclient.cache'
: Permission denied
2018-11-08T17:46:12.289227+01:00 tutatis systemd[1]: ddclient.service: Control process exited, code=exited status=1
2018-11-08T17:46:12.289677+01:00 tutatis systemd[1]: Failed to start A Perl Client Used To Update Dynamic DNS.
2018-11-08T17:46:12.290065+01:00 tutatis systemd[1]: ddclient.service: Unit entered failed state.
2018-11-08T17:46:12.290388+01:00 tutatis systemd[1]: ddclient.service: Failed with result 'exit-code'.
After some research I discovered that for some unknown reason the file /var/cache/ddclient/ddclient.cache had been changed of owner to root (instead of ddclient) and the script could not touch it.
Deleting the file worked in both systems
restarting the system recreated the file with the correct owner.
So, I post here just in case is useful for anybody.
The only questions left are:
Who caused the hange of owner?
It will happen again?
regards