Cannot switch to jenkins user redhat linux

is jenkins a service account with no shell configured in /etc/password If that's it try sudo su -s /bin/bash jenkins


Do not change the /etc/passwd file. The interactive login is set to false for a good reason, the list security implications is too long to describe here.

Instead, run this as root:

sudo su - jenkins -s /bin/bash