gpt4 book ai didi

hudson - 如何在 hudson 中重置用户密码?

转载 作者:行者123 更新时间:2023-12-04 05:25:59 29 4
gpt4 key购买 nike

我在 hudson 上丢失了管理员用户密码(实际上它只是随机停止工作),我可以通过禁用安全性(编辑 ~/.hudson/config.xml)重新进入,然后我可以配置 hudson,但我找不到添加新用户或更改/重置用户密码的任何选项 - 当禁用安全性时,这些选项可能不会出现?我正在使用基于矩阵的安全性。如何添加新用户或为现有用户重置密码?

最佳答案

Here是一篇概述如何实现的文章。

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.



希望这可以帮助。

关于hudson - 如何在 hudson 中重置用户密码?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7890674/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com