While setting up Jenkins to use our Github repo for continuous integration, I found I had to log in as Ubuntu’s “jetty” user to verify that an ssh key had been generated and was being used. However, because apt-get sets up the jetty user as a non-login shell, the default shell was /bin/false which ends execution immediately. Therefor, I couldn’t do sudo su jetty
.
Instead, I had to use sudo su -p jetty
, so it would use my current user’s shell (/bin/bash) instead.
Learn something new every day.