Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing Jenkins the first time and do not know the default user name

I tried using Jenkins or my admin username as user and password. For password, I tried to update using sudo passwd jenkins, so I am fine on that. However, I am skeptical about the user name. How do I confirm the username for Jenkins? Can someone pls help me?

like image 238
Ashvitha Avatar asked Nov 13 '16 03:11

Ashvitha


People also ask

What is the default username for Jenkins?

When you install jenkins on your local machine, the default username is admin and password it gets automatically filled.

How do I find my Jenkins username?

The username is located in the %JENKINS_HOME%/users/users. xml file.

How do I log into Jenkins for the first time?

The first time you start Jenkins, the configuration is created along with the initial default administrator account. If for some reason you have skipped the user-creation step in the setup wizard, you can use the default admin username and password to access the Jenkins UI.

What is the default username and password for Jenkins in Windows?

Default username is 'admin' and the password is the one from initialAdminPassword when you follow the above path. Then logout and login to make sure new password works.


2 Answers

Username: admin

For password,

cat /Users/$(whoami)/.jenkins/secrets/initialAdminPassword

you will get similar to this token 2762710d8dab4c88a59fea0a2e559069

like image 184
Prashanth Sams Avatar answered Oct 10 '22 23:10

Prashanth Sams


During the initial run of Jenkins a security token is generated and printed in the console log. The username is admin

The token should look something like,

*************************************************************

Jenkins initial setup is required. A security token is required to proceed.
Please use the following security token to proceed to installation:

41d2b60b0e4cb5bf2025d33b21cb

*************************************************************

For me the initial admin password was in a log at ~/.jenkins/secrets/initialAdminPassword

after installing with homebrew.

source

like image 45
HParker Avatar answered Oct 11 '22 00:10

HParker