如何恢复詹金斯密码 [英] How to recover Jenkins password

查看:213
本文介绍了如何恢复詹金斯密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在Ubuntu 12.04中安装了Jenkins.而且我忘记了我的詹金斯密码

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

kumar @ Ubuntu:〜$ sudo su -l jenkins

kumar@Ubuntu:~$ sudo su -l jenkins

jenkins @ Ubuntu:〜$ rvm重新加载

jenkins@Ubuntu:~$ rvm reload

RVM已重新加载!

jenkins @ rome:〜$ rvm安装2.0.0

jenkins@rome:~$ rvm install 2.0.0

搜索二进制红宝石,这可能需要一些时间.

Searching for binary rubies, this might take some time.

安装ubuntu的要求,可能需要sudo密码.

Installing requirements for ubuntu, might require sudo password.

jenkins的[sudo]密码:

[sudo] password for jenkins:

对不起,再试一次.

jenkins的[sudo]密码:

[sudo] password for jenkins:

对不起,再试一次.

jenkins的[sudo]密码:

[sudo] password for jenkins:

对不起,再试一次.

sudo:3次不正确的密码尝试

sudo: 3 incorrect password attempts

请让我知道如何恢复密码.谢谢

Please let me know how to recover the password. Thanks

推荐答案

以root身份登录,执行

Login as root, do a

passwd jenkins

passwd jenkins

如果您不是root用户,请要求计算机的管理员执行此操作.

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

顺便说一句:这不是一个真正的詹金斯问题,我已经删除了詹金斯标签并添加了Linux.

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

更新:您的系统上可能没有root用户,但您的kumar用户使用sudo可能具有足够的权限,但该用户的密码没有使用密码. (没有指定用户的sudo本质上就是以root身份执行")

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

sudo passwd jenkins

现在您要注意,因为您必须输入的第一个密码是您的kumar用户的密码,然后,系统才会询问您新的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.

这篇关于如何恢复詹金斯密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆