PDA

View Full Version : How to give a user permission to restart lighttpd/apache


mattg
30th June 2007, 15:41
Hi,

I'm trying to give a user the ability to create new websites and have placed a config file in his home directory and included it in lighttpd.conf. I now need to allow him to issue

/etc/init.d/lighttpd restart

but don't know how to do this. /etc/init.d/lighttpd seems to be ok to run, but the pid file in /var/run can't be created. Do I need to alter permissions on /var/run or would this be a security problem?

falko
1st July 2007, 13:43
Which distribution do you use? What's the exact error message you get?

Have you tried sudo /etc/init.d/lighttpd restart?