How to reset user password in hudson?

I lost the admin admin password on hudson (in fact, it just accidentally stops working), I can return by disabling security (editing ~ / .hudson / config.xml), then I can configure hudson, but I can't find any either options for adding new users or changing / reset user passwords - perhaps these options are not displayed when security is disabled? I used matrix protection. How can I add a new user or reset a password for existing ones?

+8
hudson
source share
4 answers

Here's an article describing how this is achieved.

First: edit the authorization parameter in the config.xml file if you have defined more users in your Hudson and you have at least one user password. For example, your username is called peter, and you know the password of the user socket, in this case just open %HUDSON_HOME%/config.xml and find the line:

 <permission>Hudson.model.Hudson.Administer:peter</permission> 

And add a new line below:

 <permission>Hudson.model.Hudson.Administer:jack</permission> 

Save the changes and restart the Hudson server, then you can log in as and change your own password. After that, log in using your own and go to http://your/hudson/configure and cancel the response back to its usual authorization setting.

Another way is to simply edit your own config.xml , in this case open %HUDSON_HOME%/your/config.xml and find the line:

 <password>………</password> 

The text between the password tag is encoded, so you cannot just enter your password in plain text. The easy way for you is simply to delete all the text between this tag, in another word, just the password is empty.

Hope this helps.

+12
source share

In Hudson 3.0, security is defined in a separate hudson-security.xml file. However, the same directory.

Just edit the <useSecurity>true</useSecurity> and specify false.

+4
source share

If you have access to jenkins files, edit the config.xml file.

/var/lib/jenkins/config.xml

Change

 <useSecurity>true</useSecurity> <useSecurity>false</useSecurity> 

And a comment on

 <authorizationStrategy/> 

Ref: http://it.i88.ca/2013/04/reset-password-of-jenkins.html

Hello!

+1
source share

I use Jenkins , but it should be like Hudson. You need to log in as a user with administrator privileges, so you need to configure Hudson to use security. Locate the User Management link on the Manage Hudson page (the main configuration page associated with the main page). On the User Management page, you must specify a list of users configured to use with Hudson, and you can add / edit / delete users here.

Read this article for more information on setting up security in Hudson.

0
source share

All Articles