본문
[Jenkins] root 권한 부여하기 (RedHat/CentOS)
Tech/GIT, CICD 2020. 12. 8. 10:52
반응형
How to run Jenkins using the root user in Linux (CentOS)
젠킨스 사용자 계정 권한을 root로 전환하는 방법입니다
1. Open up the this script (using VIM or other editor):
vim /etc/sysconfig/jenkins
2. Find this line and change to “root”:
$JENKINS_USER="root"
3. Then change the ownership of Jenkins home, webroot and logs: (선택사항; 해도되고 안해도됨)
chown -R root:root /var/lib/jenkins chown -R root:root /var/cache/jenkins chown -R root:root /var/log/jenkins
4. Restart Jenkins and check the user has been changed:
/etc/init.d/jenkins restart ps -ef | grep jenkins
Now you should be able to run the Jenkins jobs as the root user.
반응형
댓글