Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Quick question - did some searching but couldn't seem to find anything.

I'd like to be able to stop/start a service on a Jenkins node. Is it possible to give the jenkins user permission for this WITHOUT using sudo? Or is it going to be less secure than just using sudo with the lines:

Defaults:jenkins !requiretty,!lecture
jenkins ALL=NOPASSWD:/etc/init.d/servicename


(edited to add 'hudson' to the title)

share|improve this question

Take a look at the ssh plugin. You can specify a different user and execute your command without having to sudo into that user.

share|improve this answer
Enh. We don't like link-only answers here. Especially link-only answers to a product. A little spammy. Maybe improve this with some details about this pllugin, or how to do it with this pulgin, or like that there. – HopelessN00b Sep 8 '14 at 16:00

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .