I need to add a file to my project package to perform network configuration using NetworkManager (RHEL). The requirements for this file are that it be owned by root, not writable by group/other, and executable.
I know I can set the permissions with the install command, but how do I change owner? If I were writing the spec file, this would be a simple %attr(755, root, root) command, but CPack doesn’t seem to (obviously) support that.
maybe it’s a non-issue, because apparently, yum installs files owned by root by default, but it begs the question if I wanted other files not owned by root, how would I do that?