There are various services which are being run on our machines, e.g. cassandra, datadog, etc.
Occasionally, we need to change the configuration, and we wish to automate the propagation of the config files and restarts.
We use Jenkins for automate the workflow for our application software, and were thinking of using this for services as well. We do not wish the server Jenkins runs on to have remote root (or even sudo) access to the host server.
I was wondering if we could safely change the owner of /etc/cassandra to cassandra, /etc/datadog to dd-agent, etc, because it would help us to automate. (Actually, is it recommended that such folders/files should be owned by the appropriate user, and that having root as owner is wrong?)