【发布时间】:2014-02-21 10:22:14
【问题描述】:
我已经安装了 Jenkins,并且在安装过程中创建了一个名为 jenkins 的用户。我可以从文档中看到:
The 'jenkins' user is created to run this service.
现在我需要成为这个jenkins 用户。我有以下几种方式:
[root@hostname ~]# sudo su - jenkins
[root@hostname ~]# id
uid=0(root) gid=0(root) groups=0(root)
[root@hostname tmp]# su - jenkins
[root@hostname tmp]# whoami
root
为什么切换用户到jenkins用户不起作用?
我在 RHEL 上。
cat /etc/*release
Red Hat Enterprise Linux Server release 6.3 (Santiago)
【问题讨论】:
-
你创建用户的命令是什么?
-
我已经安装了 Jenkins,并且在安装过程中创建了一个名为 jenkins 的用户。我什至不知道该用户是如何创建的。
-
我的猜测是用户被锁定了。执行
passwd -u jenkins,然后重试。
标签: bash shell jenkins continuous-integration continuous-deployment