I'm on Debian 8. While How to set default file permissions for all folders/files in a directory? is about permissions, I'd like something similar for ownership.
Whenever I login as root and add a file to a daemons config directory, the ownership of the newly created file is
root:root. While this is OK for most situation, here it isn't. I'd like to have the ownership set to
daemon:daemon automatically when I create a file somewhere under the config directory.
How do I accomplish that?