I've installed jenkins and I'm trying to get into a shell as Jenkins to add an ssh key. I can't seem to su into the jenkins user:
[root@pacmandev /]# sudo su jenkins
[root@pacmandev /]# whoami
root
[root@pacmandev /]# echo $USER
root
[root@pacmandev /]#
The jenkins user exists in my /etc/passwd file. Runnin su jenkins
asks for a password, but rejects my normal password. sudo su jenkins
doesn't seem to do anything; same for sudo su - jenkins
. I'm on CentOS.
sudo usermod -s /bin/bash jenkins