Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a redhat linux server running jenkins. I setup jenkins as per the instructions mentioned here https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+Red+Hat+distributions The problem is that I need to switch to the jenkins user in order to solve an ssh connection issue, but I cannot.

I try

su - jenkins

however after I enter that, the terminal remains[root@redhat ~]# and a whoami reveals that I am still root I have looked at the files /etc/passwd etc/shadow and see that jenkins is a user, but I don't have enough experience to tell what I have done wrong in setting up this jenkins user.

any ideas would be helpful, or places to look for clues?

share|improve this question

migrated from stackoverflow.com Mar 14 '13 at 19:45

This question came from our site for professional and enthusiast programmers.

1 Answer 1

up vote 8 down vote accepted

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

share|improve this answer
1  
That's the way! Now for anyone that has similar problems /var/lib/jenkins acts as the home dir for jenkins user and will have .ssh –  OrwellHindenberg Mar 14 '13 at 16:06

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.