Jenkins is used by default to create a user with the Jenkins under Linux

Source: Internet
Author: User

Jenkins is used by default to create a user with the Jenkins under Linux

Linux is more restrictive, with Jenkins users, there will be a lot of restriction. The workaround here is to modify the user used by the Jenkins runtime.

Users who are modified to root or other slightly larger permissions do not have to be changed to root. This is just a demo.

Jenkins_home= "/var/lib/jenkins"
# # Type:string
# # Default: ""
# # Servicerestart:jenkins
#
# Java executable to run Jenkins
# When left empty, we'll try to find the suitable Java.
#
Jenkins_java_cmd= ""

# # Type:string
# # Default: "Jenkins"
# # Servicerestart:jenkins
#
# Unix user account that runs the Jenkins daemon
# Be careful if you change this, as you need to update
# Permissions of $JENKINS _home and/var/log/jenkins.
#
Jenkins_user= "Root"

After the modification is complete, save and restart the service!

This makes it much smoother to execute the relevant commands.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.