I\'m using a EC2 server instance. Used the following to install Jenkins:
wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add
Here is how you can fix it:
/var/lib/jenkins/config.xml
<useSecurity>true</useSecurity>
to false sudo service jenkins restart
allow anyone to do anything
, and allow user signup.www.yoursite.com/securityRealm/addUser
and create a userallow 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
.Before installing jenkins, create a user named jenkins and set password there. Then after installing jenkins you can use the password you created.
You can always disable security, then go in and re-enable it with the settings you want.
I don't believe that the Jenkins user that is installed via apt has a password. If it does, I have never seen documentation. Based on the commands you entered, I am guessing you are using a Debian distro?
Is there any particular reason you must use the jenkins user to do the install instead of the user which was set up when you created your instance?
When you install jenkins on your local machine, the default username is admin and password it gets automatically filled.
The password is present in the log generated by docker run image as shown in the example below.
Jenkins Docker run log
Additionally you can check the directory /var/jenkins_home/secrets/ Its in the file name initialAdminPassword
You can use cat /var/jenkins_home/secrets/initialAdminPassword to read it.