Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I reset a user password in hudson?

Tags:

hudson

I've lost the admin user password on hudson (actually it just randomly stopped working), I can get back in by disabling security (editing ~/.hudson/config.xml) then I can configure hudson, but I can't find any options to add new users or change/reset user passwords - maybe these options don't appear when security is disabled? I was using the matrix-based security. How can I add a new user or reset the password for existing ones?

like image 664
jhabbott Avatar asked Oct 25 '11 14:10

jhabbott


People also ask

How do I find my e bay password?

Click the Account settings option. Your account page appears. On the left side, under my eBay Views, click the link for Personal Information. At the Personal Information page, a section called Account Information appears at the top with a setting for Password.

How do I find my username and password for Jenkins Windows?

If you forgot your username then you can simply goto the path C:\Windows\System32\config\systemprofile\AppData\Local\ and find USER folder. Here you will get config. xml file that file is having username. Save this answer.

How do I change my Les Mills password?

Visit the login page and enter your email address. Click Next. Underneath the password field, select Reset your password. Enter your email address on that page and select Reset Password.


2 Answers

Here is an article outlining how that is achieved.

The first one: edit the authorization setting in the config.xml file if you have defined more users in your Hudson and you at least one user’s password. For example, your user name called peter and you know the password of the user jack, in this case, just open the %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 your change and restart your Hudson server, then you can login as jack and change your own password. After then login using your own account and go to http://your/hudson/configure and change jack back to his normal authorization setting.

The other way ist just editing 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 can’t just enter your password as plain text here. The easy way for you now is just remove all the text between that tag, in another word, just let the password empty.

Hope this helps.

like image 141
myusuf3 Avatar answered Sep 22 '22 20:09

myusuf3


In Hudson 3.0, security is defined in a separate file, hudson-security.xml. Same directory though.

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

like image 26
Michael Avatar answered Sep 25 '22 20:09

Michael