We have installed jenkins on a Redhat server from the Jenkins repository and have followed the documentation properly (https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+Red+Hat+distributions)Also we have started Jenkins process with default configuration except for the user running jenkins.
This is changed to another user so that the build scripts are executed by the build user from Jenkins. To do this we have changed the JENKINS_USER in /etc/sysconfig/jenkins and also changed the permissions of the below folders:
to the build user and the Jenkins service is now started properly with the build user.
But the issue occurs when the machine is rebooted. After booting the 3 folders above have their permissions again reset to 'jenkins' user due to which the service fails to start as the config has JENKINS_USER as build user.