jenkins unable to delete file


在Ubuntu下,當執行apt-get install方式安裝Jenkins的時候,會自動建立jenkins用戶,這是一個沒有用戶目錄的帳號。spa

1.從/etc/group文件中在nogroup中刪除jenkins帳號get

 

2.將jenkins帳號加入到root組jenkins

gpasswd -a root jenkins文件

 

3.修改/etc/default/jenkinsapt-get

# user id to be invoked as (otherwise will run as root; not wise!)
JENKINS_USER=root

JENKINS_GROUP=root

相關文章
相關標籤/搜索