1.将jenkins账号分别加入到root组中
gpasswd -a root jenkins
2.修改/etc/sysconfig/jenkins文件中,
# user id to be invoked as (otherwise will run as root; not wise!)
JENKINS_USER=root
JENKINS_GROUP=root
可以修改为root权限运行
3.重启Jenkins
service jenkins restart
1.将jenkins账号分别加入到root组中
gpasswd -a root jenkins
2.修改/etc/sysconfig/jenkins文件中,
# user id to be invoked as (otherwise will run as root; not wise!)
JENKINS_USER=root
JENKINS_GROUP=root
可以修改为root权限运行
3.重启Jenkins
service jenkins restart
本文标题:jenkins修改启动用户,解决执行脚本权限问题
本文链接:https://www.haomeiwen.com/subject/rqdxzftx.html
网友评论