~ id uid=502(mikeooye) gid=20(staff) ...
#停止Jenkins $ sudo launchctl unload /Library/LaunchDaemons/org.jenkins-ci.plist # 修改group 和user $ sudo vim +1 +/daemon +’s/daemon/staff/’ +/daemon +’s/daemon/bixiaopeng’ +wq org.jenkins-ci.plist $ sudo chown -R bixiaopeng:staff /Users/Shared/Jenkins/ # 开始Jenkins $ sudo launchctl load /Library/LaunchDaemons/org.jenkins-ci.plist
也可以手动修改 org.jenkins-ci.plist 文件中的内容
若无法打开jenkins,需要修改下权限
$ sudo chown -R userName /Users/Shared/Jenkins $ sudo chown -R userName /var/log/jenkins
#重启Jenkins $ sudo launchctl load /Library/LaunchDaemons/org.jenkins-ci.plist
原文:http://www.cnblogs.com/ihojin/p/jenkins-permission.html