Issue
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?
Solution
- Navigate to this folder
/Users/Shared/Jenkins/Home
- Right click on
secrets/
folder and select "Get Info" - Scroll down to the right bottom corner of the pop up window and click on the lock image > enter your password > ok
- 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.
- 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.
Answered By - user3397633
Answer Checked By - Marilyn (JavaFixing Volunteer)