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?
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.
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With