58

When I go to mydomain.example:8080 there is no authorization mechanism by default. I have had look at the configuration area but cannot find anywhere to add a basic username and password

3

5 Answers 5

54

Go to Manage Jenkins > Configure Global Security and select the Enable Security checkbox.

For the basic username/password authentication, I would recommend selecting Jenkins Own User Database for the security realm and then selecting Logged in Users can do anything or a matrix based strategy (in case when you have multiple users with different permissions) for the Authorization.

Sign up to request clarification or add additional context in comments.

9 Comments

In 1.507 this is instead Manage Jenkins -> Configure Global Security.
The instructions are helpful, but don't actually tell how to add a user to Jenkins.
This was the answer I was seeking. Navigate to "Manage Jenkins" → "Manage Users" → "Create User"
If you don't see "Manage Users" link, it's because you have to set up the security at 'Configure Global Security'
After enabling security for "Jenkins Own User Database", the next screen prompts you to enter a username/password to create a new user.
|
7

Assuming you have Manage Jenkins > Configure Global Security > Enable Security and Jenkins Own User Database checked you would go to:

  • Manage Jenkins > Manage Users > Create User

Comments

1
  • Try deleting the .jenkins folder from your system which is located ate the below path. C:\Users\"Your PC Name"\.jenkins

  • Now download a fresh and a stable version of .war file from official website of jenkins. For eg. 2.1 and follow the steps to install.

  • You will be able to do via this method

Comments

0

You need to Enable security and set the security realm on the Configure Global Security page (see: Standard Security Setup) and choose the appropriate Authorization method (Security Realm).

Jenkins Security Realm, Hudson's own user database

Depending on your selection, create the user using appropriate method. Recommended method is to select Jenkins’ own user database and tick Allow users to sign up, hit Save button, then you should be able to create user from the Jenkins interface. Otherwise if you've chosen external database, you need to create the user there (e.g. if it's Unix database, use credentials of existing Linux/Unix users or create a standard user using shell interface).

See also: Creating user in Jenkins via API

Comments

0

If installed as an admin, use:

uname - admin pw - the passkey that was generated during installation 

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.