What is the default Jenkins password?

前端 未结 19 2099
情话喂你
情话喂你 2020-12-01 04:11

I\'m using a EC2 server instance. Used the following to install Jenkins:

wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add          


        
相关标签:
19条回答
  • 2020-12-01 04:48

    Similar to the Ubuntu answer above, the Windows admin default password is stored in {jenkins install dir}\secrets\initialAdminPassword file (default install location would it in C:\Program Files (x86)\Jenkins\secrets\initialAdminPassword )

    0 讨论(0)
  • 2020-12-01 04:50

    By default, Jenkins account is created without password and with the login shell as /bin/false.

    jenkins:x:496:493:Jenkins Continuous Integration Server:/var/lib/jenkins:/bin/false
    

    Change the shell to /bin/bash and you should be able to login without password by sudo su - jenkins.

    Command to change the shell is:

    chsh -s /bin/bash jenkin
    
    0 讨论(0)
  • 2020-12-01 04:51

    Well, Even I tried to log in with the admin/password which was failed. So I created my own user like this.

    1. Go to Jenkins home folder (C:\User.jenkins or you can find this in Jenkins server startup logs)
    2. Go to Config file config.xml
    3. set disableSignup to false false if at all you want to disable login security 4.set ser security to false. true
    0 讨论(0)
  • 2020-12-01 04:53

    After Jenkins is installed just run sudo cat /var/lib/jenkins/secrets/initialAdminPassword.

    In the Jenkins login page:

    User: admin Password: the output from the above command

    0 讨论(0)
  • 2020-12-01 04:57

    If you installed using apt-get in ubuntu 14.04, you will found the default password in /var/lib/jenkins/secrets/initialAdminPassword location.

    0 讨论(0)
  • 2020-12-01 04:58

    On ubuntu 19.04, the default password are stored in the home directory:

    cat ~/.jenkins/secrets/initialAdminPassword
    
    0 讨论(0)
提交回复
热议问题