How to recover Jenkins password

走远了吗. 提交于 2019-12-13 10:58:40

问题


I had installed Jenkins in my Ubuntu 12.04. And i forgot my Jenkins password

kumar@Ubuntu:~$ sudo su -l jenkins

jenkins@Ubuntu:~$ rvm reload

RVM reloaded!

jenkins@rome:~$ rvm install 2.0.0

Searching for binary rubies, this might take some time.

Installing requirements for ubuntu, might require sudo password.

[sudo] password for jenkins:

Sorry, try again.

[sudo] password for jenkins:

Sorry, try again.

[sudo] password for jenkins:

Sorry, try again.

sudo: 3 incorrect password attempts

Please let me know how to recover the password. Thanks


回答1:


Login as root, do a

passwd jenkins

if you are not root, ask the administrator of your machine to do this.

BTW: this is not really a jenkins question, I've removed the jenkins tag and added linux.

Update: you might not have a root user with a password on your system, but your kumar user probably has sufficient rights using sudo. (sudo without specifying a user basically means 'do as root')

sudo passwd jenkins

now you have to pay attention, since the first password you have to type is the password of your kumar user, and only after that the system will ask you for the new jenkins user password.



来源:https://stackoverflow.com/questions/17467139/how-to-recover-jenkins-password

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!