Jenkins User Configuration

Source: Internet
Author: User
  • Add the first user

The procedure is System Management-enable security-Access Control-Jenkins private user database-security matrix,

After saving, the config. xml file is generated under the Jenkins home (/var/lib/Jenkins) directory.

<useSecurity>true</useSecurity>

This node indicates that security management is used, that is, operations can be performed only after a user logs on to the node.

<authorizationStrategy class="hudson.security.GlobalMatrixAuthorizationStrategy">    <permission>hudson.model.Computer.Configure:andy</permission>    <permission>hudson.model.Computer.Connect:andy</permission>    <permission>hudson.model.Computer.Create:andy</permission>    <permission>hudson.model.Computer.Delete:andy</permission>    <permission>hudson.model.Computer.Disconnect:andy</permission>    <permission>hudson.model.Hudson.Administer:andy</permission>    <permission>hudson.model.Hudson.ConfigureUpdateCenter:andy</permission>    <permission>hudson.model.Hudson.Read:andy</permission>    <permission>hudson.model.Hudson.RunScripts:andy</permission>    <permission>hudson.model.Hudson.UploadPlugins:andy</permission>    <permission>hudson.model.Item.Build:andy</permission>    <permission>hudson.model.Item.Cancel:andy</permission>    <permission>hudson.model.Item.Configure:andy</permission>    <permission>hudson.model.Item.Create:andy</permission>    <permission>hudson.model.Item.Delete:andy</permission>    <permission>hudson.model.Item.Discover:andy</permission>    <permission>hudson.model.Item.Read:andy</permission>    <permission>hudson.model.Item.Workspace:andy</permission>    <permission>hudson.model.View.Configure:andy</permission>    <permission>hudson.model.View.Create:andy</permission>    <permission>hudson.model.View.Delete:andy</permission>    <permission>hudson.model.View.Read:andy</permission>  </authorizationStrategy>

The configuration information of this node is related permissions of the Andy user.

Register with the user you just added

After sign up, the users folder is generated under the Jenkins home (/var/lib/Jenkins) directory, and the users directory contains the information of the Andy user.

  • Security failure Methods
  • Method 1
<useSecurity>true</useSecurity>

Change

<useSecurity>false</useSecurity>

  • Method 2

Delete the config. xml file under the Jenkins home (/var/lib/Jenkins) Directory and the entire users folder.

sudo rm -r config.xmlsudo rm -r users

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.