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

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

You must log in to answer this question.

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