how to allow a user to restart service?

Associate
Joined
8 Mar 2007
Posts
2,176
Location
between here and there
Hey guys,

I've written a web app that can be configured via a website. Only problem is that after the config has been completed i need to restart the applications service.

Sadly the only way to do that is to have root rights (as far as I'm aware)

Is there a way of allowing the apache user to be able to restart a single service?

Or is there a way of triggering a root action to restart the service?

All of this needs to be scripted so any help is appreciated.

thanks
 
sorted...

edited the sudoers file (/etc/sudoers) and allowed apache the rights to restart the single service in question.
 
Back
Top Bottom