daithi-coombes / vagrant-jenkins-php

Vagrant box for running Jenkins with PHP projects
MIT License
2 stars 0 forks source link

Set jenkins user to `vagrant` #2

Open daithi-coombes opened 9 years ago

daithi-coombes commented 9 years ago

set the user running jenkins to vagrant, info from here: http://blog.manula.org/2013/03/running-jenkins-under-different-user-in.html

sudo cp -a /etc/default/jenkins /etc/default/jenkins.bak
sudo pico /etc/default/jenkins                           
#change to JENKINS_USER=vagrant

sudo chown -R vagrant:vagrant /var/lib/jenkins
sudo chown -R vagrant:vagrant /var/cache/jenkins
sudo chown -R vagrant:vagrant /var/log/jenkins
sudo /etc/init.d/jenkins restart
daithi-coombes commented 9 years ago

the practicality of this needs to be researched and although vm quick solution prob not the best one.