Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I get initial admin password for jenkins on Mac?

Tags:

macos

jenkins

I installed jenkins by downloading jenkins-2.2.pkg. After the installation is complete, Chrome auto-connected to http://localhost:8080/login?from=%2F and I see the following message:

Unlock Jenkins
To ensure Jenkins is securely set up by the administrator, a password has been written to the log (not sure where to find it?) and this file on the server:

/Users/Shared/Jenkins/Home/secrets/initialAdminPassword

Please copy the password from either location and paste it below.

But I don't have access to secrets folder on my Mac book even when I'm the Admin user.

Please help me on how to find the initial admin password?

like image 922
Srinivasan Ramu Avatar asked May 10 '16 18:05

Srinivasan Ramu


People also ask

Where is Jenkins initial admin password?

The initial Administrator password should be found under the Jenkins installation path (set at Step 2 in Jenkins Installation). For default installation location to C:\Program Files\Jenkins, a file called initialAdminPassword can be found under C:\Program Files\Jenkins\secrets.


1 Answers

  1. Navigate to this folder /Users/Shared/Jenkins/Home
  2. Right click on secrets/ folder and select "Get Info"
  3. Scroll down to the right bottom corner of the pop up window and click on the lock image > enter your password > ok
  4. Click on the "+" at the left bottom corner of the pop up window and add the user 4.5 Click on Settings icon - left bottom and Apply changes.
  5. Open the "secrets" folder and find the initialAdminPassword file to get the initial admin password. If you don't have permission to the file, you need to right click on the file and select "Get Info" then repeat step 3 and 4 above to access the file.
like image 182
user3397633 Avatar answered Sep 26 '22 00:09

user3397633