What is the default Jenkins password?

0 votes

I'm using a EC2 server instance but I need to install software on the Jenkins server.

I’ve used this command:

sudo –s –H –u jenkins
sudo cabal install quickcheck

But then it asked for a password and I cant find it anywhere

Aug 9, 2018 in Jenkins by lina
• 8,200 points
13,725 views

5 answers to this question.

0 votes
Try this:

-stop jenkins

- go and edit /var/lib/jenkins/config.xml

- Change <useSecurity>true</useSecurity> to false

- Restart Jenkins: sudo service jenkins restart

- Navigate to the Jenkins dashboard to the "Configure Security" option you likely used before. This time, setup security the same as before, BUT set it to allow anyone to do anything, and allow user signup.

- Go to www.yoursite.com/securityRealm/addUser and create a user

- Then go change allow anyone to do anything to whatever you actually want users to be able to do. In my case, it is allow logged in users to do anything.
answered Aug 9, 2018 by Kalgi
• 51,830 points
0 votes
jenkins default administrator password is logged in log file in ubuntu

log file is situated in /var/log/jenkins/jenkins.log folder

password will be placed after this, Jenkins initial setup is required. An admin user has been created and a password generated. Please use the following password to proceed to installation
answered Aug 10, 2018 by Nilesh
• 6,960 points
0 votes

Just execute the following command:

sudo passwd jenkins

This should display the password of your Jenkins

answered Apr 22, 2019 by Haider
Hey Thanks @Haider, worked like a charm!
0 votes

You can get your initial admin password for Jenkins in the following location:

sudo cat /Users/Shared/Jenkins/Home/secrets/initialAdminPassword
answered Apr 22, 2019 by Linda
0 votes

Change the shell to /bin/bash instead of bin/false and you should be able to log in without password by sudo su - jenkins.

Command to change the shell is:

chsh -s /bin/bash jenkin
answered Apr 22, 2019 by Vinod

Related Questions In Jenkins

0 votes
2 answers

What is the command to restart jenkins through command line in linux?

On Ubuntu or Debian, when installed through apt-get/dpkg: $ ...READ MORE

answered Aug 1, 2019 in Jenkins by Sirajul
• 48,960 points
1,951 views
+1 vote
1 answer

What is the difference between Hudson and Jenkins?

Jenkins and Hudson are Continuous Integration tool, ...READ MORE

answered Jun 17, 2019 in Jenkins by Neel
• 3,010 points
612 views
0 votes
1 answer
+1 vote
4 answers

Is there a way to change the Jenkins build number while building a job?

If you have access to the script ...READ MORE

answered May 7, 2019 in Jenkins by Atul
5,844 views
+13 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,400 points
370 views
0 votes
1 answer
+1 vote
3 answers
0 votes
2 answers

will running multiple Jenkins masters on same host increase the performance?

While using one big master, u can ...READ MORE

answered Aug 7, 2018 in Jenkins by Kalgi
• 51,830 points
868 views