'Default Jenkins User Password
I have a fresh install of Jenkins as a service on my Linux machine. When Jenkins installs, it creates a 'jenkins' user, but I can't seem to find the default password for it anywhere.
I'm trying to secure my system, so if the default password is '123' or something insecure that I just haven't thought of yet, that's a problem.
Thanks!
Solution 1:[1]
For fedora,
- Go to /root/.jenkins/
- open config.xml
- In config.xml, set disableSignup to false.
- Restart Jenkins.
- Go to the Jenkins web page and sign up with a new user.
- In config.xml, duplicate one of the hudson.model.Hudson.Administer:username lines and replace username with the new user.
- If it's a private server, set disableSignup back to true in config.xml. Restart Jenkins.
- Go to the Jenkins web page and log in as the new user.
- Reset the password of the original user.
- Log in as the original user.
Solution 2:[2]
Default password for user jenkins is just "jenkins". However, logging into this user automatically closes your session (probably it is set to be used only to allow using particular computer as a jenkins agent, but I'm not sure). That't why su - jenkins and typing jenkins do not work.
You can try logging as a jenkins user with ssh and you will see that it works, but suddenly the session is closed:
I believe there is a solution for this, but maybe it is not needed in your case. Really need to use system as a jenkins user? Doubt it.
Solution 3:[3]
C:\Windows\system32\config\systemprofile.jenkins\secrets\
goto above mentioned path and find
"initialAdminPassword" click that file and copy value this is password for jenkins!
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Community |
| Solution 2 | Mat21445 |
| Solution 3 | Vinay Prajapati |

