我已经安装了Jenkins,并在安装过程中创建了一个名为jenkins
的用户。我可以从文档看:如何成为Jenkins用户?
The 'jenkins' user is created to run this service.
现在我需要成为这个jenkins
用户。我有以下几种方式:
[[email protected] ~]# sudo su - jenkins
[[email protected] ~]# id
uid=0(root) gid=0(root) groups=0(root)
[[email protected] tmp]# su - jenkins
[[email protected] tmp]# whoami
root
为什么切换用户到jenkins用户不工作?
我在RHEL上。
cat /etc/*release
Red Hat Enterprise Linux Server release 6.3 (Santiago)
什么是用于创建用户的命令? –
我已经安装了Jenkins,并在安装过程中创建了一个名为jenkins的用户。我甚至不知道该用户是如何创建的。 – Exploring
我的猜测是用户被锁定。请'passwd -u jenkins'然后再试一次。 –