The jenkins rpm packages correctly adapt the ownerships of /var/lib/jenkins and JENKINS_HOME to the JENKINS_USER from /etc/sysconfig/jenkins in a postinstall step.
Unfortunately, jenkins also uses the directory /var/cache/jenkins, which is not modified. Therefore I suggest to extend the rpm postinstall script by the line:
|Component/s||packaging [ 20120 ]|
|Component/s||core [ 15593 ]|
|Assignee||Sam Van Oort [ svanoort ]|
|Status||Open [ 1 ]||Resolved [ 5 ]|
|Resolution||Fixed [ 1 ]|
|Workflow||JNJira [ 160528 ]||JNJira + In-Review [ 196468 ]|