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.

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 stackoverflow.com 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: stackoverflow.com/questions/6811878/php-exec-issue/… –  nmat Jul 26 '11 at 4:22
add comment

1 Answer 1

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
add comment

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.