I have installed Jenkins and I have jenkins as a user in my /etc/passwd:jenkins:x:995:993:Jenkins Continuous Integration Server:/var/lib/jenkins:/bin/bashnginx:x:994:992:Nginx web server:/var/lib/nginx:/sbin/nologinsetroubleshoot:x:993:990::/var/lib/setroubleshoot:/sbin/nologinI have tried to su - jenkins while root and I get this response:[root@li1078-244 ~]# su - jenkinsLast login: Sun Nov  6 02:50:18 UTC 2016 on pts/0su: failed to execute /bin/bash : No such file or directoryI want to su - jenkins into bash so I can continue some configurations.I thought I would login as jenkins, but I can't, I get this:ldco2016@DCortes-MacBook-Pro-3 ~ $ ssh jenkins@localhost                             [ruby-2.3.1]jenkins@localhost's password:Permission denied, please try again.
What is exactly is going on with my jenkins user?
ssh;jenkins
On many installations, the login shell for the Jenkins user is set to false or nologin:$ grep jenkins /etc/passwdjenkins:x:495:441:Jenkins Continuous Integration Server:/var/lib/jenkins:/bin/falseSo if you try to login as or switch to the Jenkins user, the system will not allow it.The best way to work around this is to start a shell using the Jenkins user:$ sudo su - jenkins -s/bin/bash-bash-4.1$ whoamijenkins-bash-4.1$ echo $HOME/var/lib/jenkins-bash-4.1$-bash-4.1$ cd .ssh-bash-4.1$ pwd/var/lib/jenkins/.ssh-bash-4.1$I use this method to install SSH keys that I want my jenkins server to have access to at the CLI level.