Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

Does anyone know how I can allow an SSH user to execute some functions such as restarting httpd?

I'm trying to allow a user (apache) to execute some functions such as "service httpd reload" since it's not allowed. I don't really want to give apache root access, just some functions.

share|improve this question

migrated from Jul 26 '11 at 2:38

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

You might want to take a look at my answer here:… – nmat Jul 26 '11 at 4:22

sudo. You can configure specific commands a user is allowed to execute in /etc/sudoers. Be careful when authorizing a user to run commands as root; it's easy to accidentally allow them to do more than you intended.

share|improve this answer

Your Answer


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.