Sudo to Jenkins with a shell
$ sudo su - jenkins -s/bin/bash
Otherwise normally the login shell for the Jenkins user is set to false or nologin:
$ sudo grep jenkins /etc/passwd
jenkins:x:989:985:Jenkins Automation Server:/var/lib/jenkins:/bin/false
Comments
Post a Comment